mirror of
https://github.com/codex-team/editor.js
synced 2024-06-29 02:40:23 +02:00
Paste listener on editors instead of document (#1025)
* Paste listener on editors instead of document * add changelog Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
parent
0bb7141d1a
commit
74c75330aa
2
dist/editor.js
vendored
2
dist/editor.js
vendored
File diff suppressed because one or more lines are too long
|
@ -4,6 +4,7 @@
|
|||
|
||||
- `Improvements` - Editor's [onchange callback](https://editorjs.io/configuration#editor-modifications-callback) now accepts an API as a parameter
|
||||
- `Fix` - Some mistakes are fixed in [installation.md](installation.md)
|
||||
- `Fix` - Fixed multiple paste callback triggering in a case when several editors are instantiated [#1011](https://github.com/codex-team/editor.js/issues/1011)
|
||||
|
||||
### 2.16.1
|
||||
|
||||
|
|
|
@ -226,7 +226,7 @@ export default class Paste extends Module {
|
|||
private setCallback(): void {
|
||||
const {Listeners} = this.Editor;
|
||||
|
||||
Listeners.on(document, 'paste', this.handlePasteEvent);
|
||||
Listeners.on(this.Editor.UI.nodes.holder, 'paste', this.handlePasteEvent);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue