s there a command to unload the editor from a textarea once it attaches itself?
I have a couple users with limited memory resources and wanted to create buttons to load and unload the editor for specific text areas.
Thanks.
I have a couple users with limited memory resources and wanted to create buttons to load and unload the editor for specific text areas.
Thanks.
RE: Is it possible to unload fckEditor?
Another issue I had was if a user hit the editor button multiple times it would cause editors to stack on top of each other.
RE: Is it possible to unload fckEditor?
I've been doing a little work using the DOM and XMLHTTPRequest to load/submit/unload FCKEditor instances within a single page. Haven't looked at it in a couple of weeks, but I wrote up a bit of the work at:
http://jystewart.net/process/archives/2 ... fckeditor/
RE: Is it possible to unload fckEditor?
I've been using your (slightly modified) function in my recent job. It requires me to first display 'casual' page with sections that become editable when user clicks on one of them. This is done by copying textareas value into empty div on page's load.
There is also possibility to unload the editor (or rather brutally wipe it) by creating 'exit' plugin. Code for its Execute method:
FCKExitCommand.prototype.Execute = function()
{
//FCK.UpdateLinkedField();
if (confirm('Do you want to abandon all changes?'))
{
win_parent_doc = window.parent.document;
text_area = win_parent_doc.getElementById(FCK.Name);
editor_iframe = win_parent_doc.getElementById(FCK.Name + "___Frame");
editor_wrapper = editor_iframe.parentNode //div wrapping both textarea and the div with duplicated content
editor_inactive = win_parent_doc.getElementById(FCK.Name + "_inactive"); //div with textarea's duplicated content
editor_inactive.style.display = 'block';
win_parent_doc.getElementById("editorsection").busy = false; //on the page load the form with textareas is being assigned busy property with initial value false. this is to make sure only one section can be edited at a moment
editor_wrapper.removeChild(editor_iframe); //
}
}
The 'overwritten' 'Save button works similar, only the textarea is first updated.
It's dirty, but it works:] Any idea how to improve it would be highly appreciated.
Been playing with fck for some time. Great piece of software:)
jacek
RE: Is it possible to unload fckEditor?