mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
fix(editor): Disable Grammarly in expression editors (#5826)
* 🔥 Disable Grammarly in expression editor modal input
* Add also to inline
This commit is contained in:
@@ -62,6 +62,7 @@ export default mixins(expressionManager, completionManager, workflowHelpers).ext
|
|||||||
expressionInputHandler(),
|
expressionInputHandler(),
|
||||||
EditorView.lineWrapping,
|
EditorView.lineWrapping,
|
||||||
EditorState.readOnly.of(this.isReadOnly),
|
EditorState.readOnly.of(this.isReadOnly),
|
||||||
|
EditorView.contentAttributes.of({ 'data-gramm': 'false' }), // disable grammarly
|
||||||
EditorView.domEventHandlers({ scroll: forceParse }),
|
EditorView.domEventHandlers({ scroll: forceParse }),
|
||||||
EditorView.updateListener.of((viewUpdate) => {
|
EditorView.updateListener.of((viewUpdate) => {
|
||||||
if (!this.editor || !viewUpdate.docChanged) return;
|
if (!this.editor || !viewUpdate.docChanged) return;
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ export default mixins(completionManager, expressionManager, workflowHelpers).ext
|
|||||||
expressionInputHandler(),
|
expressionInputHandler(),
|
||||||
EditorView.lineWrapping,
|
EditorView.lineWrapping,
|
||||||
EditorView.editable.of(!this.isReadOnly),
|
EditorView.editable.of(!this.isReadOnly),
|
||||||
|
EditorView.contentAttributes.of({ 'data-gramm': 'false' }), // disable grammarly
|
||||||
EditorView.domEventHandlers({
|
EditorView.domEventHandlers({
|
||||||
focus: () => {
|
focus: () => {
|
||||||
this.$emit('focus');
|
this.$emit('focus');
|
||||||
|
|||||||
Reference in New Issue
Block a user