Quick-Tip: Missing a button in CKEditor? Here‘s why

Friday, September 20, 2019 at 2:47 PM UTC

I noticed this a while ago since I am using Domino V10 but now I did some investigation. For some reason the toolbar button to add a new image from a file was missing. This is the action that presents you a dialog where you could choose a file to upload.

This is how the full toolbar looks like on Domino 9 and before:

And this is what I got when running the same page on V10:

The button is no more. If you also experienced this behavior you probably also used an extra plugin called „autogrow“. I added this for some reason to the control. I guess I did that because in 9 or older the editor did not grow automatically while typing and when the content grew over the visible area. I that case you got a scrollbar which I personally find annoying. This plugin solved this issue - but caused the other one.

As Ben Langhinrichs pointed out in the comments, the spell checker is also affected. Thanks for the hint!

If you run your application in a mixed environment with 9 and 10 servers you should control the usage of this plugin based on the version of the server. The simplest way to do this is using the @Version() formula with the loaded property of the dojo attribute:

    <xp:this.loaded><![CDATA[${javascript:@TextToNumber(session.evaluate("@Version").elementAt(0)) < 450}]]></xp:this.loaded>

Latest comments to this post

Oliver Busse wrote on 20.09.2019, 16:13

Hi Ben,

indeed, the spell checker button is also affected. I added this to the text.

Thanks for the heads-up!

 Reply to this comment
 Link to this comment
Ben Langhinrichs wrote on 20.09.2019, 15:59

It looks like the spellchecker icon (top row directly above what you are showing) is also missing. Do you know if that the same issue or something else related to the spell checker?

 Reply to this comment
 Link to this comment

Leave a comment right here