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|anyThe arguments to initialize the component.
Returns
-
objectFocusEditorCore
Source
trws(str) → {string}
Trims whitespaces from a string
Parameters
-
str
string
Returns
-
string