Skip to content

Commit 74b19f4

Browse files
committed
fix TypeError: this.editorOptions.modules is undefined
1 parent a09319c commit 74b19f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/VueEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default {
9191
readOnly: this.disabled ? this.disabled : false,
9292
};
9393
if (Object.keys(this.editorOptions).length > 0 && this.editorOptions.constructor === Object) {
94-
if (typeof this.editorOptions.modules.toolbar !== 'undefined') {
94+
if (this.editorOptions.modules && typeof this.editorOptions.modules.toolbar !== 'undefined') {
9595
// We don't want to merge default toolbar with provided toolbar.
9696
delete quillOptions.modules.toolbar;
9797
}

0 commit comments

Comments
 (0)