diff --git a/api-generator/components/editor.js b/api-generator/components/editor.js
index f72737ef1..f3478b3db 100644
--- a/api-generator/components/editor.js
+++ b/api-generator/components/editor.js
@@ -28,6 +28,12 @@ const EditorProps = [
type: "any",
default: "null",
description: "Inline style of the container."
+ },
+ {
+ name: 'modules',
+ type: 'object',
+ default: 'null',
+ description: 'Modules configuration, see here for available options.'
}
];
@@ -98,6 +104,17 @@ const EditorEvents = [
description: "Text editor instance."
}
]
+ },
+ {
+ name: 'load',
+ description: 'Callback to invoke when the quill modules are loaded.',
+ arguments: [
+ {
+ name: 'event.instance',
+ type: 'any',
+ description: 'Quill instance'
+ }
+ ]
}
];
diff --git a/src/components/editor/Editor.d.ts b/src/components/editor/Editor.d.ts
index 30a4f23ab..ce7625baa 100755
--- a/src/components/editor/Editor.d.ts
+++ b/src/components/editor/Editor.d.ts
@@ -51,6 +51,13 @@ export interface EditorSelectionChangeEvent {
instance: any;
}
+export interface EditorLoadEvent {
+ /**
+ * Text editor instance.
+ */
+ instance: any;
+}
+
export interface EditorProps {
/**
* Value of the content.
@@ -72,6 +79,10 @@ export interface EditorProps {
* Inline style of the container.
*/
editorStyle?: any;
+ /**
+ * Modules configuration, see [here](https://quilljs.com/docs/modules/) for available options.
+ */
+ modules?: any;
}
export interface EditorSlots {
@@ -97,6 +108,11 @@ export declare type EditorEmits = {
* @param {EditorSelectionChangeEvent} event - Custom selection change event.
*/
'selection-change': (event: EditorSelectionChangeEvent) => void;
+ /**
+ * Callback to invoke when the quill modules are loaded.
+ * @param {EditorLoadEvent} event - Custom load event.
+ */
+ 'load': (event: EditorLoadEvent) => void;
}
declare class Editor extends ClassComponent { }
diff --git a/src/components/editor/Editor.vue b/src/components/editor/Editor.vue
index 9137581c6..f85deacaf 100755
--- a/src/components/editor/Editor.vue
+++ b/src/components/editor/Editor.vue
@@ -48,17 +48,26 @@
\ No newline at end of file
+