This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 25, 2011, 12:24 AM
27 Posts

inputRichText toolbarType does not work / breaks editor

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: inputRichText toolbarType
  • Replies: 3
As per the documentation, I am trying to change the toolbarType used by the rich text editor like so: 
<xp:inputRichText id="inputRichText1" value="#{document1.body}">
	<xp:this.dojoAttributes>
		<xp:dojoAttribute name="toolbarType" value="full"></xp:dojoAttribute>
	</xp:this.dojoAttributes>
</xp:inputRichText>
If I do not use the dojoAttributes section, the rich text editor works fine.  As soon as I add the dojoAttributes section as shown above, the editor stops working as this causes an error in the dojo.js javascript library.
 
Would anyone have any idea what I might be doing wrong or know a fix? 
 
Any help is greatly appreciated! 
Cheers, 
 
Alex 
Mar 25, 2011, 10:02 AM
261 Posts
Re: inputRichText toolbarType does not work / breaks editor
Hi Alex,
 
Try using:
 
<xp:this.dojoAttributes>
                                    <xp:dojoAttribute name="toolbar">
                                        <xp:this.value><![CDATA[#{javascript:"[['Bold','Italic','Underline','Strike','TextColor']]"}]]></xp:this.value>
                                    </xp:dojoAttribute>
                                </xp:this.dojoAttributes>
 
Mark
Mar 25, 2011, 5:11 PM
122 Posts
Re: inputRichText toolbarType does not work / breaks editor
As far as I know, "full" is not a valid entry for the toolbarType. You have either "Slim","Medium", and "Large" (note the upper case first letter). As Mark says, you can also create your own toolbar.
 
Shortly after 8.5.2 went gold I blogged about the various attributes for the new CKEditor, based on feedback from Teresa Monaghan to my post in the Managed Beta forum. Teresa subsequently added an article in the app dev wiki. Both links are below:
http://hermes.intec.co.uk/Intec/Blog.nsf/dx/23092010205047HERRAA.htm
http://www-10.lotus.com/ldd/ddwiki.nsf/page.xsp?documentId=9D2DE95F419045E9852577B30044B4E8&action=openDocument
 
You can find details of the default settings, which will also give you an idea of the possible attributes, by looking at CKEditorWrapper.js.uncompressed in <data>\domino\js\dojo-1.5.0\ibm\xsp\widget\layout. The CKEditor files themselves are in <data>\domino\html folder, and there's a sub-folder of CKEditor called "source" with the uncompressed files.
Mar 25, 2011, 10:30 PM
27 Posts
Re: inputRichText toolbarType does not work / breaks editor
 That is the answer - I'm now using "Slim" and it works perfectly.  Thank you all for the help!

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal