Wouldn't a standard textarea object be better then?
Anyway you could set the config setting: FCKConfig.ToolbarStartExpanded = false ; FCKConfig.ToolbarCanCollapse = true ; This way you would see a collapsed toolbar on startup, but users will be able to expand it again. You can't set canCollapse off and startExpanded off at the same time.
If that's what you want, you'll have to use some javascript:
// 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);
This script will not run. FCKeditor ( the document.getElementById('FCKeditor1'); ) is a valid element, but FCKeditor.EditorWindow, FCKeditor.parent, FCKeditor.document , FCKeditor.xCollapsed, FCKeditor.getElementById('xCollapsed') all are invalid/nonexisting javascript elements.
Help, please?
edit : We're using FCKeditorV2 and this thread should really have been in support and not general discussion.
Anyway you could set the config setting: FCKConfig.ToolbarStartExpanded = false ; FCKConfig.ToolbarCanCollapse = true ;
Is it possible to set this setting at runtime and not thru config. I mean to say tht if i make change in config the it would be applied each instance && every instance
i want to do this setting for only 1 instance is it possible If yes, How ???????????
Re: is there a way not to have the toolbar?
Anyway you could set the config setting:
FCKConfig.ToolbarStartExpanded = false ;
FCKConfig.ToolbarCanCollapse = true ;
This way you would see a collapsed toolbar on startup, but users will be able to expand it again. You can't set canCollapse off and startExpanded off at the same time.
If that's what you want, you'll have to use some javascript:
// 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);
Re: is there a way not to have the toolbar?
This script will not run. FCKeditor ( the document.getElementById('FCKeditor1'); ) is a valid element, but FCKeditor.EditorWindow, FCKeditor.parent, FCKeditor.document , FCKeditor.xCollapsed, FCKeditor.getElementById('xCollapsed') all are invalid/nonexisting javascript elements.
Help, please?
edit : We're using FCKeditorV2 and this thread should really have been in support and not general discussion.
Re: is there a way not to have the toolbar?
Re: is there a way not to have the toolbar?
FCKConfig.ToolbarStartExpanded = false ;
FCKConfig.ToolbarCanCollapse = true ;
Is it possible to set this setting at runtime and not thru config.
I mean to say tht if i make change in config the it would be applied each instance && every instance
i want to do this setting for only 1 instance
is it possible
If yes, How ???????????
Re: is there a way not to have the toolbar?