mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 18:03:25 +02:00
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:
parent
153fc48bd6
commit
86c84d8555
|
@ -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>
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue