hotfix: add popular grammar checker extension node names (#2096)

* 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 <specc.dev@gmail.com>

* Update CHANGELOG.md

---------

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
Anwar Hussain 2023-03-15 19:27:25 +07:00 committed by GitHub
parent 153fc48bd6
commit 86c84d8555
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View file

@ -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
@ -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>

View file

@ -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());
}
/**