Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

fieldType: richText

Table of Contents

Rich Text field properties

Simple rich text field definition.

...

Include Page
_Common field properties
_Common field properties

Link buttons

There are three link buttons:

  •  Links to external pages
  •  Links to internal pages
  •  Links to documents in the DAM

Loading order for custom configuration

(warning) Note that any configuration done in a 

Javadoc resource link
classNameinfo.magnolia.ui.form.field.factory.RichTextFieldFactory
renderTypeasynchronous
will override configuration settings from the config.js file. This is why we ignore other properties in the field definition as soon as a configJsFile is configured.

Decode text

CKEditor produces HTML such as <p> elements for paragraphs. However, text stored in JCR usually escapes HTML code. To render text which originates from a rich text field you need to decode the stored content to make sure the HTML tags are rendered properly again.

...

Code Block
${cmsfn.decode(content).text!""}

See cmsfn decodeHtml.

Impact on the search index

Keep in mind that using the RTE introduces HTML into your content. The impact of this is that the HTML will be indexed along with the content.