Hi all,
I would like to be able to drag text into the FCK Editor, once dropped the value of the text will be added to the Editor Source.
I am able to accomplish this with a standard text box, but I am unable to accomplish it with FCK Editor because in order to create a droppable text box area you must know the ID and set it with a simple javascript
Is it possible to obtain the ID of the text area created by the FCK Editor for inputting text? If so, how does one go about getting it?
If I'm not being clear enough please let me know and I will gladly elaborate
THANK YOU!
-Mike
I would like to be able to drag text into the FCK Editor, once dropped the value of the text will be added to the Editor Source.
I am able to accomplish this with a standard text box, but I am unable to accomplish it with FCK Editor because in order to create a droppable text box area you must know the ID and set it with a simple javascript
Is it possible to obtain the ID of the text area created by the FCK Editor for inputting text? If so, how does one go about getting it?
If I'm not being clear enough please let me know and I will gladly elaborate
THANK YOU!
-Mike
RE: Drag & Drop into FCK Editor w/ Scriptacul
Please post any findings so others can read it!
RE: Drag & Drop into FCK Editor w/ Scriptacul
Success!
With a little bit of tom-foolery I have successfully set up a working proof of concept. Instead of dropping into the FCK Editor itself, I just lay the editor on top of a div tag, and tell scriptaculous to drop on that div ... because of the inheritance it works.
I'm posting this code in the hopes that someone will be intrigued and help me perfect it...
Let me know what you think!
PS - Your going to need to download the scriptaculous files (http://script.aculo.us/downloads) and set up the pointers correctly ... I trust no one will have a problem with that
------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >