I need to add some custom code that gets executed when certain actions take place in FCKeditor.
For example, when someone adds an HTML Form via the form button, I need a JavaScript function to be added to the page as well. Basically, the functionality should work something like:
1) click Form
2) enter form details, name form 'XXXX'
3) click OK on form popup
4) form tags are added in the editor window. At the same time, a JavaScript function is added to the page to concatenate all elements of form 'XXXX' into a single string and send this string to a database. This function would be called from form 'XXXX's Submit button.
I do not need the JavaScript code for this, but I do need to know what file to add this logic into. I have spent a couple of hours now looking through the FCKeditor files, but have not yet located what I am looking for. If anyone can point me in the right direction (or if anyone has done anything similar), any help would be appreciated.
Thanks.
For example, when someone adds an HTML Form via the form button, I need a JavaScript function to be added to the page as well. Basically, the functionality should work something like:
1) click Form
2) enter form details, name form 'XXXX'
3) click OK on form popup
4) form tags are added in the editor window. At the same time, a JavaScript function is added to the page to concatenate all elements of form 'XXXX' into a single string and send this string to a database. This function would be called from form 'XXXX's Submit button.
I do not need the JavaScript code for this, but I do need to know what file to add this logic into. I have spent a couple of hours now looking through the FCKeditor files, but have not yet located what I am looking for. If anyone can point me in the right direction (or if anyone has done anything similar), any help would be appreciated.
Thanks.
