I am having issues with multiple instances of the editor being open at the same time with different instance names.
Example 1:
Example 2:
The script creates an instance, the dialog box is closed $(jquery).remove() which includes the fckeditor instance. When I open the dialog box again without refreshing the page it throws an error 'FCK is not defined ( line 31, fckeditorcode_gecko.js)'.
I've been banging my head on this all day long and it is starting to drive me crazy. It seems to be throwing the error on this section on the line that I have commented out.
If I comment this line out the editor loads just fine, with it enabled the editor errors and does not continue to load.
Example 1:
- link 1 opens a dialog box containing fckeditor.instance1
- ajax call populates SetHTML value
- Close Dialog - calls $(jquery).remove();
- Perform the exact same steps again, works fine
Example 2:
- fckeditor.instance1 is automatically created
- ajax call populates SetHTML value
- link 1 opens a dialog box containing fckeditor.instance2
- ajax call populates SetHTML value
- Close Dialog on fckeditor.instance2 - calls $(jquery).remove();
- link 1 opens a dialog box containing fckeditor.instance2
- 'FCK is not defined' ( line 31,
The script creates an instance, the dialog box is closed $(jquery).remove() which includes the fckeditor instance. When I open the dialog box again without refreshing the page it throws an error 'FCK is not defined ( line 31, fckeditorcode_gecko.js)'.
I've been banging my head on this all day long and it is starting to drive me crazy. It seems to be throwing the error on this section on the line that I have commented out.
if ( FCKeditorAPI.GetInstance( instance ) ) { //FCKeditorAPI.GetInstance( instance ).SetHTML( value ); }
If I comment this line out the editor loads just fine, with it enabled the editor errors and does not continue to load.