Hierarchy

  • Create

Implements

Constructors

Properties

document: Document | (() => Document)

Type declaration

Methods

  • Apply to element createAttributes options

    Parameters

    Returns void

  • Type Parameters

    • K extends keyof HTMLElementTagNameMap

    Parameters

    Returns HTMLElementTagNameMap[K]

  • Type Parameters

    • K extends keyof HTMLElementTagNameMap

    Parameters

    Returns HTMLElementTagNameMap[K]

  • Create invisible text node

    Returns Text

  • Create DOM element from HTML text

    Parameters

    • html: string | number
    • Optional refsToggleElement: IDictionary<boolean | void>

      State dictionary in which you can set the visibility of some of the elements

      const editor = Jodit.make('#editor');
      editor.createInside.fromHTML(`<div>
      <input name="name" ref="name"/>
      <input name="email" ref="email"/>
      </div>`, {
      name: true,
      email: false
      });

    Returns HTMLElement

  • Create text node

    Parameters

    • value: string

    Returns Text

Jodit PRO

If you like Jodit - try Jodit PRO