Static
STATUSESReadonly
beforeReadonly
beforeReadonly
destructed: "destructed"Readonly
ready: "ready"Parent View element
The window in which jodit was created
Readonly
uidCurrent component status
Setter for current component status
Component was destructed
The component is currently undergoing destructuring or has already been destroyed. Those. you should not hang new events on him now or do anything else with him.
Component is ready for work
Shortcut for this.jodit
Bind destructor to some View
Static
equalCompare two snapshotes, if and htmls and selections match, then return true
the first snapshote
second shot
Safe get any field
the path to be traversed in the obj object
Optional
obj: IDictionarythe object in which the value is searched
private a = {
b: {
c: {
e: {
g: {
color: 'red'
}
}
}
}
}
this.get('a.b.c.e.g.color'); // Safe access to color
// instead using optionsl chaining
this?.a?.b?.c?.e?.g?.color
Calc BEM element class name
element name in the bem classification
Adds a handler for changing the component's status
the status at which the callback is triggered
a function that will be called when the status is status
Static
isCreates object a snapshot of editor: html and the current selection. Current selection calculate by offset by start document {html: string, range: {startContainer: int, startOffset: int, endContainer: int, endOffset: int}} or {html: string} without selection
Restores the state of the editor of the snapshot. Rebounding is not only html but selected text
snapshot of editor resulting from the [[Snapshot.make]]
method
make
Restore selection from snapshot
snapshot of editor resulting from the [[Snapshot.make]] method
make
Set component status
component status
ComponentStatus
If you like Jodit - try Jodit PRO
Module for creating snapshot of editor which includes html content and the current selection