fix(editor): Disable Grammarly in expression editors (#5826)

* 🔥 Disable Grammarly in expression editor modal input

* Add also to inline
This commit is contained in:
Iván Ovejero 2023-03-30 15:48:43 +02:00 committed by GitHub
parent fa5bc814b0
commit ddc8f30e6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -62,6 +62,7 @@ export default mixins(expressionManager, completionManager, workflowHelpers).ext
expressionInputHandler(),
EditorView.lineWrapping,
EditorState.readOnly.of(this.isReadOnly),
EditorView.contentAttributes.of({ 'data-gramm': 'false' }), // disable grammarly
EditorView.domEventHandlers({ scroll: forceParse }),
EditorView.updateListener.of((viewUpdate) => {
if (!this.editor || !viewUpdate.docChanged) return;

View file

@ -96,6 +96,7 @@ export default mixins(completionManager, expressionManager, workflowHelpers).ext
expressionInputHandler(),
EditorView.lineWrapping,
EditorView.editable.of(!this.isReadOnly),
EditorView.contentAttributes.of({ 'data-gramm': 'false' }), // disable grammarly
EditorView.domEventHandlers({
focus: () => {
this.$emit('focus');