Opened 10 years ago

Closed 10 years ago

#836 closed New Feature (duplicate)

non file based (dynamic) toolbar configuration

Reported by: anonymous Owned by:
Priority: Normal Milestone:
Component: UI : Toolbar Version:
Keywords: SF Pending Cc: maxxcorp@…

Description

A way to modify the toolbar at runtime, and not only with fckconfig.js file.

  • javascript api functions

or

  • toolbar config setting on constructor.

or anything else...


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1254929&group_id=75348&atid=543656

Change History (4)

comment:1 Changed 10 years ago by Martin Kou

Cc: maxxcorp@… added
Reporter: changed from Martin Kou to anonymous

Hi,

are there any updates on this one ?

it is really important if one has multiple toolbarsets stored in a database(in our case build by a visual toolbarbuilder) and wants to load a specific one for this instance.

best regards

MaxxCorp


Moved from SF. Original poster: maxxcorp

comment:2 Changed 10 years ago by Alfonso Martínez de Lizarrondo

Component: GeneralUI : Toolbar

comment:3 Changed 10 years ago by Wojciech Olchawa

Keywords: Pending added

If you are referring to the possiblity of switching between custom toolbar sets, than it isn't such a difficult issue.

You may use something like this:

function toolbar1()
{
  var oEditor = FCKeditorAPI.GetInstance('FCKeditor_1') ;
  oEditor.ToolbarSet.Load( 'CustomToolbar1' ) ;
  }

and than just call it:

<a href="javascript:void(0);" onclick="toolbar1();">Custom Toolbar 1</a>

Of course the toolbars will have to be predefined in the config file.

Or is you request about creating different toolbars at runtime (without predefining them in the config file)?

comment:4 Changed 10 years ago by Wojciech Olchawa

Resolution: duplicate
Status: newclosed

This is a DUP of #622

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy