Configuring the WYSIWYG editor

This information also resides in the User Manual but since it’s a pretty central thing in a CMS we thought we add it here as well.

As stated before InfoGlue comes with FCKEditor as the default WYSIWYG-editor. It is a very nice and customizable editor. Default in InfoGlue it looks like this with all buttons enabled:
An image is needed


The common thing is of course to configure the palette and some behavior to better fit your organization and your users. This is mostly done in a JavaScript-based configuration file. However – in InfoGlue we decided that it is important to be able to set the configuration not only for the system but also give organizations the possibility to give different repositories, users, groups or roles different setups so more advanced users are allowed more than new users etc.

So here is the possible places to put the configurations:

  • Under each repository’s properties. As shown in the repository section of the management tool there was two fields available for the WYSIWYG there.
  • For SystemUser, Roles and Group you can create two property-attributes called WYSIWYGConfig and StylesXML and add the configuration there.

If the properties are available on the system user that information is used, otherwise the editor looks in the roles / groups the user is part of and uses the information there if it exists. If not it uses properties put on the repository in question and if not even defined there it uses the default setup.

In addition to the configurations it is possible to choose toolbar for each attribute in the content types. You can also state other settings for each attribute. For example if we want to state that the “Leadin”-attribute in the content type “Article” should use the toolbar defined as “Basic” in the configuration (javascript shown below) you just state that in the content type.

 

//This is where you define the toolbar. Look at the FCKEditor-site for the full list
FCKConfig.ToolbarSets["Default"] = [
['Cut','Copy','Paste','PasteText','Print','Undo','Redo','Find','Replace','RemoveFormat'],
['Bold','Italic'],
['OrderedList','UnorderedList'],
['Link','Unlink','Anchor'],
['Image','Table','Rule','SpecialChar','Source'],
['Style','FontFormat']
] ;

FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic'],
['OrderedList','UnorderedList'],
['Link','Unlink','Anchor'],
['Image','Source']]
] ;