Ticket #930 (closed Bug: duplicate)

Opened 17 months ago

Last modified 14 months ago

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

Changed 17 months ago by saul11

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);

Changed 17 months ago by saul11

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>' ).

Changed 14 months ago by alfonsoml

  • status changed from new to closed
  • resolution set to duplicate

dup of #549 (fixed for next version)

Note: See TracTickets for help on using tickets.