add editorProps to options
This commit is contained in:
@@ -14,6 +14,7 @@ export default class Editor {
|
||||
|
||||
constructor(options = {}) {
|
||||
this.defaultOptions = {
|
||||
editorProps: {},
|
||||
editable: true,
|
||||
autoFocus: false,
|
||||
extensions: [],
|
||||
@@ -167,6 +168,9 @@ export default class Editor {
|
||||
},
|
||||
},
|
||||
}),
|
||||
new Plugin({
|
||||
props: this.options.editorProps,
|
||||
}),
|
||||
],
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user