Hi, i need to hide or remove completely the toolbar in my fckeditor textbox.
using
FCKConfig.ToolbarSets["blank"] = [
['']
] ;
returns a full toolbarSet
FCKConfig.ToolbarSets["blank"] = [
[]
] ;
don't work
need help!
tnx
using
FCKConfig.ToolbarSets["blank"] = [
['']
] ;
returns a full toolbarSet
FCKConfig.ToolbarSets["blank"] = [
[]
] ;
don't work
need help!
tnx
RE: Remove toolbarSet
Modify /editor/fckeditor.html
...
window.onload = function()
{
InitializeAPI() ;
if ( FCKBrowserInfo.IsIE )
FCK_PreloadImages() ;
else
LoadToolbarSetup() ;
//ADD THIS LINE
document.getElementById( 'xToolbarRow' ).style.display = 'none';
}
... I also added the height settings below, but not sure if that is necessary or not.
<tr id="xToolbarRow" style="display: none; height='0'">
<td id="xToolbarSpace" style="overflow: hidden; height='0'">
Wish this was configurable, if someone knows of a better way to do this please post it here.
RE: Remove toolbarSet
window.onload method in /editor/fckeditor.html :
document.getElementById( 'xToolbarRow' ).style.display = 'none';
document.getElementById( 'xToolbarRow' ).style.height = '0';
The height setting is needed for IE7 for some reason the first time it loads the editor it shows it, then after that first time the toolbar would be hidden. After setting the height to zero it works fine in IE7.
It would be really cool if this could be set by a configuration parameter, or if the html could be written out with these set based on a config parameter.
RE: Remove toolbarSet
Better use the FCKeditor_OnComplete API method (http://wiki.fckeditor.net/Developer%27s ... script_API):
function FCKeditor_OnComplete(editorInstance){editorInstance.EditorWindow.parent.document.getElementById("xExpanded").style.display = "none";}
Also you might want to have a look at my toggleFCKeditor function at http://www.saulmade.nl/FCKeditor/FCKSnippets.php