Focus Editor

Global

Methods

init(args) → {object|FocusEditorCore}

Initializes the FocusEditor component.

The following possibilities are supported:

  • Many elements or array of elements: Replaces each element with a FocusEditorWebComponent and returns the FocusEditorWebComponent class.
  • Single element: Replaces the element with a FocusEditorWebComponent and returns the FocusEditorWebComponent class.
  • Else: returns the FocusEditorCore class

Parameters

  • args HTMLElement | Array.<HTMLElement> | NodeList | any

    The arguments to initialize the component.

Returns

  • object FocusEditorCore

Source

trws(str) → {string}

Trims whitespaces from a string

Parameters

  • str string

Returns

  • string

Source