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


    Type: String

    The CSS class to toggle, should not contain spaces.

  2. forceState


    Type: Boolean

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