• Construct an editor element for rich text editing with TinyMCE or ProseMirror.

    Parameters

    • content: string

      The content to display and edit.

    • Optionaloptions: {
          button?: boolean;
          class?: string;
          collaborate?: boolean;
          editable?: boolean;
          engine?: string;
          target?: string;
      }
      • Optionalbutton?: boolean

        Include a button used to activate the editor later?

      • Optionalclass?: string

        A specific CSS class to add to the editor container

      • Optionalcollaborate?: boolean

        Whether to turn on collaborative editing features for ProseMirror.

      • Optionaleditable?: boolean

        Is the text editor area currently editable?

      • Optionalengine?: string

        The editor engine to use, see foundry.applications.ux.TextEditor.create. Default: "tinymce".

      • Optionaltarget?: string

        The named target data element

    Returns SafeString

    {{editor world.description target="description" button=false engine="prosemirror" collaborate=false}}