How to easily hide an XPages CKEditor toolbar

Today’s random requirement was to be able to provide a Rich Text field without the user realizing that it was. The requirement derived from modernizing an existing application and the need to retain field type for notes client users more than web users.

So I did I quick google and did what every good developer did – stole the idea – in this case directly from Jesse

https://www.frostillic.us/f.nsf/posts/quick-and-dirty-ckeditor-toolbar-setup-for-xpages

I was able to hide the toolbar on the CKEditor by making a new toolbar which was completely empty.

<xp:inputRichText id="editor1">
	<xp:this.attrs>
        <xp:attr name="toolbar">
        	<xp:this.value><![CDATA[ [ ] ]]></xp:this.value>
        </xp:attr>
    	</xp:this.attrs>
</xp:inputRichText>