To make the editor usefull for our project we made some changes we like to share with other users:
(This change isn't visible but we needed it. @ the onsubmit event the editor does some things (copys the code to a invisible textarea and does the XHTML thingy), but when a form is submitted via the jscript function form.submit(); the onsubmit event isn't fired so the editor replaces the submit() function to do his things. Wich made it nearly impossible for us to do our things @ the onsubmit, so we changed the new function created by the editor with one wich fires the orrigional onsubmit event: )
fck_editor.js (in function setLinkedField()):
oForm.originalSubmit = oForm.submit ;
oForm.submit = function()
{
/* if (this.updateFCKEditor)
{
for (var i = 0 ; i < this.updateFCKEditor.length ; i++)
{
this.updateFCKEditor[i]() ;
}
} */
this.fireEvent('onsubmit'); // New line
this.originalSubmit() ;
}
(This change isn't visible but we needed it. @ the onsubmit event the editor does some things (copys the code to a invisible textarea and does the XHTML thingy), but when a form is submitted via the jscript function form.submit(); the onsubmit event isn't fired so the editor replaces the submit() function to do his things. Wich made it nearly impossible for us to do our things @ the onsubmit, so we changed the new function created by the editor with one wich fires the orrigional onsubmit event: )
fck_editor.js (in function setLinkedField()):
oForm.originalSubmit = oForm.submit ;
oForm.submit = function()
{
/* if (this.updateFCKEditor)
{
for (var i = 0 ; i < this.updateFCKEditor.length ; i++)
{
this.updateFCKEditor[i]() ;
}
} */
this.fireEvent('onsubmit'); // New line
this.originalSubmit() ;
}
Custom feature: Form submit() improvement
I'm interested to have the linked field up-to-date before the form is subbmited.
Any help will be welcomed!
Custom feature: Form submit() improvement
Custom feature: Form submit() improvement
looking for the same feature (onchange() functionality)...
as are:
https://sourceforge.net/forum/forum.php ... _id=379487
http://sourceforge.net/tracker/?group_i ... id=1144166