Configuration

Below is the full configuration available with defaults values:

"example" => [
    "type"   => "anomaly.field_type.wysiwyg",
    "config" => [
        "default_value" => null,
        "configuration" => "default",
        "line_breaks"   => false,
        "sync"          => true,
        "height"        => 500,
        "buttons"       => [],
        "plugins"       => [],
    ]
]
Configuration
Key Example Description

default_value

<h1>Hello World</h1>

The default value.

configuration

basic

The configuration preset.

line_breaks

true

If enabled, line breaks will be used instead of new paragraphs when pressing enter in the editor.

sync

true

If disabled, storage files will NOT be synced with DB content.

height

750

The height of the editor.

buttons

["bold", "italic"]

Specify the available buttons for the editor. By default, available options are format, bold, italic, deleted, lists, link, horizontalrule, and underline.

plugins

["filemanager", "imagemanager"]

Specify the available plugins for the editor. By default, available options are alignment, inlinestyle, table, video, filemanager, imagemanager, source, and fullscreen.