I need to customize CKEditor's toolbar with custom buttons sets.
I have already read these questions/answers and linked ressources:
What they do works, if you always do a full page refresh. But if you do a partial refresh of a part of the page - including at least one rich text control (CKEditor version 4.3.2) - after the partial refresh CKEditor chooses a toolbar like 'Full' (I don't really know, but I think the default type) as toolbar type to display.
The problem is the whole dojo-widget - custom IBM CKEditor - thing. It makes your toolbar
dojo property being 'forgotten/ignored' after a partial refresh (but it is still set!!!).
Anyone having experience/knowledge, how to solve this best, e.g. the IBM way (if there is any?!?!?)?
I solved it quick and dirty by changing properties of the global CKEditor JS variable (executed every time inside the partial refresh block):
<xp:scriptBlock id="scriptBlock2">
<xp:this.value>
<![CDATA[
CKEDITOR.config.readOnly = true;
CKEDITOR.config.removePlugins = 'autogrow';
CKEDITOR.config.autoGrow_minHeight = 250;
CKEDITOR.config.autoGrow_maxHeight = 250;
CKEDITOR.config.toolbarLocation = 'top';
CKEDITOR.config.toolbar_readonly = [
{ name: 'tools', items: ['Find','Print', 'Preview', 'Maximize']}
];
]]>
</xp:this.value>
</xp:scriptBlock>
System:
- IBM Domino 9.0.1 FP2 (local on client PC)
- OpenNTF Domino Framework in use
- Windows 7 32 bit