How to get toggle-editor-class

Depend on fontoxml-editor to make this operation available.

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

Name Type Description
class String

The CSS class to toggle, should not contain spaces.

[forceState] Boolean

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

Was this page helpful?