mirror of
https://github.com/codex-team/editor.js
synced 2026-03-17 16:10:07 +01:00
remove unsed events
This commit is contained in:
parent
f14394dbf7
commit
3bbc9c2f9b
1 changed files with 2 additions and 2 deletions
|
|
@ -459,7 +459,7 @@ export default class Toolbar extends Module<ToolbarNodes> {
|
|||
*
|
||||
* dargstart is used to select the current block/s and hide the tooltip for dragging.
|
||||
*/
|
||||
this.readOnlyMutableListeners.on(this.nodes.settingsToggler, 'dragstart', (event: DragEvent) => {
|
||||
this.readOnlyMutableListeners.on(this.nodes.settingsToggler, 'dragstart', () => {
|
||||
this.Editor.BlockManager.currentBlock = this.hoveredBlock;
|
||||
this.Editor.BlockManager.currentBlock.selected = true;
|
||||
|
||||
|
|
@ -471,7 +471,7 @@ export default class Toolbar extends Module<ToolbarNodes> {
|
|||
*
|
||||
* dargend is used to move the select block toolbar setting to dropped position.
|
||||
*/
|
||||
this.readOnlyMutableListeners.on(this.nodes.settingsToggler, 'dragend', (event: DragEvent) => {
|
||||
this.readOnlyMutableListeners.on(this.nodes.settingsToggler, 'dragend', () => {
|
||||
this.moveAndOpen(this.Editor.BlockManager.currentBlock);
|
||||
}, true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue