I'm incredibly frustrated with trying to get FCKEditor to work the way I need it to. What I need just doesn't exist, or I just don't know how to make it work the way I want it to. I've listed the different situations below.
Situation 1)
I have a page where every field (input, select, textarea) has it's change event attached to a function that stores it's value into a "changed" hash (prototype object). Every 2 or 3 seconds it checks to see if any values are stored into this "changed" hash (object). When the number values are greater than zero, an ajax request is made and saves only the fields that have changed (I poll the changed object to group changes together, rather than making a new request for every field changed).
As far as I can tell, FCKEditor only updates the textarea when the surrounding form is submitted. Even if it did, it seems that the traditional "change" event couldn't be used anyway. There is a "GetXHTML" function to grab the html, but the problem I'm having is really detecting the change. There is an "IsDirty" function for this, but the only event even remotely useful enough to use it on is "OnSelectionChange". According to the documentation here: http://docs.fckeditor.net/FCKeditor_2.x ... Script_API , there is a "focus" event but there doesn't seem to be a blur event (the "change" even on most form elements occur when the element looses focus).
Situation 2)
I need to upload files using our application's framework, but am unsure how to make this work.
Situation 3)
We have a data reference system where a data entry (from another part of the application) is given a reference name. This reference name is wrapped in square brackets. Modifier functions can be added after a pipe "|". For example, for the first name and last name data in all caps one would use "[first_name+' '+last_name|uppercase]"
This can get somewhat complicated for a non-technical use, so what we want to do is create a button on the toolbar that gives various options to create the syntax. When inserted, we want to hide the syntax with an icon or some other simpler representation. When you double click on it, it would bring up the editor. The closes thing I can find is the "placeholder" plugin, but it doesn't always work very well, and it our situation an image may work better (which would conflict with images).
I need to figure out how to do all this... but it seems to be that CKEditor (v3) would be more suitable, especially for events. But the demo seems to lack upload functionality.
Is 3.0 worth looking into right now? Can I do all this in fckeditor now?
Mon, 06/01/2009 - 20:58
#1