I´am trying to do sumthing like this http://inplacericheditor.box.re/demos with fckeditor and with prototype and scriptaculous library. I dont know how i chould explain this. But when you click on the cancel link or on the ok button, the editor chould be shut off. How chould i do that? I have tyed this but no success
editorInstance = FCKeditorAPI.GetInstance('FCKeditor');
if(editorInstance.EditorDocument) Element.remove(editorInstance.EditorDocument);
Sat, 06/30/2007 - 10:50
#1
RE: Inplace editor scriptaculous style
Removing the editor from the DOM, not sure, but as I mentioned in http://sourceforge.net/forum/forum.php? ... _id=257180 try my "HOWTO - reach anything from out of the editor": http://sourceforge.net/forum/forum.php? ... _id=257180 . Perhaps you just need the right Object.
Otherwise, is just expanding and collapsing or hiding and showing the toolbar an idea?
// Just hiding the toolbar:
editorInstance.EditorWindow.parent.document.getElementById("xExpanded").style.display = "none";
// And hiding the small bar showing when the toolbar is collapsed is this:
editorInstance.EditorWindow.parent.document.getElementById("xCollapsed").style.display = "none";
// when you want to hide the collapse handle do:
editorInstance.EditorWindow.parent.document.getElementById("xCollapseHandle").style.display = "none";
// or hiding the expand handle. This seems to be the same as hiding the object with id 'xCollapsed' mentioned above:
editorInstance.EditorWindow.parent.document.getElementById("xExpandHandle").style.display = "none";
// To just collapse the toolbars, like normally done with the small arrow, do:
editorInstance.EditorWindow.parent.FCK.ToolbarSet._ChangeVisibility(true);
// expanding it again is
editorInstance.EditorWindow.parent.FCK.ToolbarSet._ChangeVisibility(false);