Here's the CKEditor API documentation; As far as I know, there's no plug-in documentation yet (but there is a guide if you search this forum).
As for getting the data... if you have a CKEditor replacing a textarea in a form and already have a form harvesting function (e.g. using getElementsByTagName and getting the values of inputs, textareas and selects) you can use updateElement():
Found this great introductory guide http://syrinx.ph/articles/CkEditorPluginGuide.aspx but am still not sure how to create events. Just to clarify. I'm creating CKEditor dynamically by replacing divs. I need to be able to notify the hosting page that some event has occurred. Ideally I'd like to pass it in on creation. I've tried using config to pass in the callback but thats global and I may have multiple instances.
ideally i'd like CKEDITOR.replace(div, callbackOnSave);
Re: Need custom save event. Plugin documentation?
Here's the CKEditor API documentation; As far as I know, there's no plug-in documentation yet (but there is a guide if you search this forum).
As for getting the data... if you have a CKEditor replacing a textarea in a form and already have a form harvesting function (e.g. using getElementsByTagName and getting the values of inputs, textareas and selects) you can use updateElement():
otherwise you can directly grab the data using getData():
Re: Need custom save event. Plugin documentation?
Found this great introductory guide http://syrinx.ph/articles/CkEditorPluginGuide.aspx but am still not sure how to create events. Just to clarify.
I'm creating CKEditor dynamically by replacing divs. I need to be able to notify the hosting page that some event has occurred. Ideally I'd like to pass it in on creation. I've tried using config to pass in the callback but thats global and I may have multiple instances.
ideally i'd like CKEDITOR.replace(div, callbackOnSave);
Can anyone help me understand the events system?
plugin.js
Re: Need custom save event. Plugin documentation?
this works, but still interested in how to do this properly
Re: Need custom save event. Plugin documentation?
Re: Need custom save event. Plugin documentation?
>>>this code is actually from the fckeditor "fck_othercommands.js" (commandclasses)