Solved

contentEditable image

Posted on 2003-11-26
8
431 Views
Last Modified: 2007-12-19
Hello,

This is a sort of continuation to the

http://oldlook-search.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20806838.html

The thing is working nicely except for the jumping of the page when the editable area is selected and for the initial 2 clicks it takes before the hand cursor kicks in...

Now the next step, changing the picture in the contentEditable area... can this be done?

Have a look at what's done so far, here:

http://d5395716.t50.thisinformation.com/home

I'm shooting for the simplest most efficient solution, I could have used any of hundreds rich text editors out there, but it just wouldn't be the same =)
0
Comment
Question by:ark2000
  • 6
  • 2
8 Comments
 
LVL 10

Expert Comment

by:Nushi
ID: 9823984
what do you mean.

where will you get the picture form?
you must have it somewhere.

do you want to paste it on the old one?
0
 

Author Comment

by:ark2000
ID: 9823999
the image will be on the server in images directory, so for this thing I guess we need a little pop up window to select the available images and/or upload a new one.
0
 

Author Comment

by:ark2000
ID: 9824001
replace or add, adding I guess will require some sort of button to be produced when in editable mode.
0
 

Author Comment

by:ark2000
ID: 9824007
I'm gonna end up propably with going thru the javascript in one of those free rich text editors...
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 10

Accepted Solution

by:
Nushi earned 500 total points
ID: 9824024
i can recommand you on:
http://www.fredck.com/FCKeditor/demo/

you first have tio decide what you want to do.
you can simply use browse window to find the imag you want and then replace it
over the old one using :

// find the img object
document.getElementById('imageId');
//replace the src
... .src='newSource'

document.getElementById('imageId').src = 'new Source'

Nushi.

0
 

Author Comment

by:ark2000
ID: 9824045
If it would be possible to use FCKeditor with the span rather than iframe that would do it, then I would just use it with a subset of features that's it... do you know if it's possible?
0
 

Author Comment

by:ark2000
ID: 9824517
I'm trying to make it work with FCKeditor elements,
0
 

Author Comment

by:ark2000
ID: 9824626
hey NetGroove what's up? you've been 3 times to my site and still no help? =)

I'm using 2 different stats packages right now, trying to decide which one to adopt and waiting for some russian ppl to get back to me with their stats package =)

this thing is gonna rock!

I've set it up so if I go to site the stat javascript isn't even called, and vice versa, the editing javascript isn't going to be there if I'm not coming to the site... once it's done, as well as the statisticks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now