toggle-editor-class

Type: Operation

Set or unset a toggleable CSS class on the editor content.

These can be used together with outputClass to toggle custom styling on or off.

Imported operation data

  1. class

    (Required)

    Type: String

    The CSS class to toggle, should not contain spaces.

  2. forceState

    (Optional)

    Type: Boolean

    If set, directly determines whether to add or remove the class. Otherwise, the class is toggled based on its current state.