Opened 17 years ago

Closed 17 years ago

#930 closed Bug (duplicate)

Need to hide the toolbar.

Reported by: Ram Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


I am trying to hide the toolbar from my textarea,

As my business needs, users entering the data copied from MS Word or from webpages to this textarea.

So i dont need toolbarset, i just wanna hide it.

It seems it doesnt have that fecility, i can collapse and expand the toolbar but still my textarea showing the few borders on top it.

Looking forwaard to hearing from u guys.

Thanks a lot in advance'

Change History (3)

comment:1 Changed 17 years ago by Paul Moers

This is possible through the API:

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:
expanding it again is

comment:2 Changed 17 years ago by Paul Moers

Next to this you can also create your own custom toolbarset and switch to that with the API.

docs::Toolbar Configuration :

Since FCKeditor 2.3beta it's possible to easily change the toolbar using the JavaScript API by just calling <EditorInstance>.ToolbarSet.Load( '<ToolbarName>' ).

comment:3 Changed 17 years ago by Alfonso Martínez de Lizarrondo

Resolution: duplicate
Status: newclosed

dup of #549 (fixed for next version)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy