Skip to content

Commit

Permalink
hotfix: add popular grammar checker extension node names (#2096)
Browse files Browse the repository at this point in the history
* hotfix: add popular grammar checker extension node names

* fix: prettier messed the existing code style

* update the changelog

* Update docs/CHANGELOG.md

Co-authored-by: Peter Savchenko <[email protected]>

* Update CHANGELOG.md

---------

Co-authored-by: Peter Savchenko <[email protected]>
  • Loading branch information
getanwar and neSpecc authored Mar 15, 2023
1 parent 153fc48 commit 86c84d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- `Fix` — Resolve compiler error from importing the BlockToolData type.
- `Fix` — Resolved a problem when document was being scrolled to the beginning after moving up a Block above the viewport.
- `Improvement` — Package size reduced by removing redundant files
- `Fix`- Entire block being deleted on backspace key press when the browser has 3rd party grammer checker extension

### 2.26.5

Expand Down Expand Up @@ -48,6 +49,7 @@
- `Improvement`*CodeStyle*[CodeX ESLint Config](https://github.com/codex-team/eslint-config) has bee updated. All ESLint/Spelling issues resolved
- `Improvement`*ToolsAPI* — The `icon` property of the `toolbox` getter became optional.


### 2.25.0

- `New`*Tools API* — Introducing new feature — toolbox now can have multiple entries for one tool! <br>
Expand Down
10 changes: 8 additions & 2 deletions src/components/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,10 +558,16 @@ export default class Dom {
*/
public static isExtensionNode(node: Node): boolean {
const extensions = [
'GRAMMARLY-EXTENSION',
'grammarly-extension',
'mci-extension',
'gdiv',
'pwa-container-wrapper',
'pwa-editor-bar-cnt',
'editor-squiggler',
'quillbot-extension',
];

return node && extensions.includes(node.nodeName);
return node && extensions.includes(node.nodeName.toLowerCase());
}

/**
Expand Down

0 comments on commit 86c84d8

Please sign in to comment.