Optional
options: IUploaderOptions<Uploader>Static
STATUSESReadonly
beforeReadonly
beforeReadonly
destructed: "destructed"Readonly
ready: "ready"Readonly
joditParent View element
Readonly
optionsThe 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
Set the handlers Drag and Drop to $form
Form or any Node on which you can drag and drop the file. In addition will be processed
<input type="file" >
Optional
handlerSuccess: HandlerSuccessThe function be called when a successful uploading files to the server
Optional
handlerError: HandlerErrorThe function that will be called during a failed download files a server
var $form = jQuery('<form><input type="text" typpe="file"></form>');
jQuery('body').append($form);
Jodit.editors.someidfoeditor.uploader.bind($form[0], function (files) {
var i;
for (i = 0; i < data.files.length; i += 1) {
parent.s.insertImage(data.files[i])
}
});
Bind destructor to some View
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
isAttach component to View
Set component status
component status
ComponentStatus
Upload images to a server by its URL, making it through the connector server.
Optional
handlerSuccess: HandlerSuccessOptional
handlerError: HandlerErrorIf you like Jodit - try Jodit PRO
The base class of all Jodit UI components. Provides work with a life cycle.