#2424: API to destroy instances
-----------------------+----------------------------------------------------
Reporter: fredck | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone: CKEditor 3.0
Component: General | Version: FCKeditor 2.6.3
Keywords: Confirmed |
-----------------------+----------------------------------------------------
Changes (by tha_sun):
* version: => FCKeditor 2.6.3
Comment:
Any updates? A fix for this does not sound that complex. Drupal's
Wysiwyg API does the following to achieve the desired result:
{{{
var editor = FCKeditorAPI.GetInstance(params.field);
if (editor) {
$('#' + params.field).val(editor.GetXHTML()).show();
$('#' + params.field + '___Config').remove();
$('#' + params.field + '___Frame').remove();
delete FCKeditorAPI.__Instances[params.field];
}
}}}
--
Ticket URL: <http://dev.fckeditor.net/ticket/2424#comment:2>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac