Opened 12 years ago

Closed 12 years ago

#930 closed Bug (duplicate)

Need to hide the toolbar.

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

Description

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 12 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:
editorInstance.EditorWindow.parent.FCK.ToolbarSet._ChangeVisibility(true);
expanding it again is
editorInstance.EditorWindow.parent.FCK.ToolbarSet._ChangeVisibility(false);

comment:2 Changed 12 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 : http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Toolbar

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 12 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 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy