Light rich text field

The field can only be used as a content block element in a custom content editor.

Compared to the rich text field, the text formatting functions and configuration options of the light rich text field are limited.

A light rich text field

Light rich text field block with control box

A full-featured rich text field

Rich text Field example

Example definition

From a block definition in the Content Editor module (/content-editor/blocks/text.yaml).

templateId: content-editor:blocks/text
icon: text-block
label: Text
block:
  implementationClass: info.magnolia.editor.field.LightRichTextFormView
  properties:
    text:
      class: info.magnolia.editor.field.LightRichTextFieldDefinition
      linkableApps:
        - pages-app
        - dam-chooser

Field properties

Property Description

linkableApps

required

List of Magnolia apps which the editor may choose from for linking of a text element in the field with a Magnolia content item. The apps configured will be displayed in a separate choose dialog.

In the pre-5 UI versions of the Content Editor module (versions 1.3.x), the linkableApps definition was part of the contentDefinition in the configuration of the Stories app. The names of the linkable apps were also different: pages and assets (5 UI apps) versus pages-app and dam-chooser (6 UI apps, Content Editor 2.x).

/stories-app/apps/stories.yaml
icon: icon-stories-app
appClass: info.magnolia.ui.contentapp.ContentApp
class: info.magnolia.ui.contentapp.contenttypes.ConfiguredContentTypeAppDescriptor
contentType: story
subApps:
  browser:
...
  editor:
...
    contentDefinition:
...
      linkableApps:
        - pages
        - assets
Feedback