Search code examples
ckeditorxpageslotus-dominorichtext

With a simple Rich Text control in an XPage how do I limit it's height?


I'm trying to understand in an Xpage, with a Rich text control, where I would set

config.resize_enabled=false

to stop the rich text editor increasing in size, when someone enters data.

This is Domino 9.0.1 with Fix Packs.


Solution

  • I'm normally a fan of the max-height CSS property, but since the height is being set via the JS of the CKEditor, it's better to add a dojo property of removePlugins for autogrow to the xp:inputRichText.

    <xp:inputRichText
        id="inputRichText1"
        value="#{document1.Body}">
        <xp:this.dojoAttributes>
            <xp:dojoAttribute
                name="removePlugins"
                value="autogrow">
            </xp:dojoAttribute>
        </xp:this.dojoAttributes>
    </xp:inputRichText>
    

    [Edit] Here's an update to show that this technique I outlined does work. This is from 9.0.1. enter image description here [/Edit]