From 72d1c7768b552241bb5bc72016f145c0426a793c Mon Sep 17 00:00:00 2001 From: BitFlipp3r Date: Mon, 8 Nov 2021 13:21:11 +0100 Subject: [PATCH] Update Editor.ts add option to enable spellcheck --- packages/vue-prism-editor/src/Editor.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/vue-prism-editor/src/Editor.ts b/packages/vue-prism-editor/src/Editor.ts index bd54449..f0c205d 100644 --- a/packages/vue-prism-editor/src/Editor.ts +++ b/packages/vue-prism-editor/src/Editor.ts @@ -79,6 +79,10 @@ export const PrismEditor = Vue.extend({ type: String, default: '', }, + spellCheck: { + type: String, + default: 'false', + }, }, data() { return { @@ -565,7 +569,7 @@ export const PrismEditor = Vue.extend({ 'prism-editor__textarea--empty': this.isEmpty, }, attrs: { - spellCheck: 'false', + spellCheck: this.spellCheck, autocapitalize: 'off', autocomplete: 'off', autocorrect: 'off',