add editorProps to options

This commit is contained in:
Philipp Kühn
2019-01-29 09:31:26 +01:00
parent a6c270c98c
commit 89bdef6441
2 changed files with 5 additions and 0 deletions

View File

@@ -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,
}),
],
})
}