From 2ee050b47d544c784dc61c0bdcfc718a2f6966d4 Mon Sep 17 00:00:00 2001 From: hamza! Date: Tue, 20 Sep 2022 10:00:41 +0900 Subject: [PATCH 1/2] make anchor tag content undraggable so that the whole block can be dragged in the editor if supported --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index 06e12a8..80f764d 100644 --- a/src/index.js +++ b/src/index.js @@ -111,6 +111,7 @@ export default class LinkTool { */ render() { this.nodes.wrapper = this.make('div', this.CSS.baseClass); + this.nodes.wrapper.draggable = !this.readOnly; this.nodes.container = this.make('div', this.CSS.container); this.nodes.inputHolder = this.makeInputHolder(); @@ -303,6 +304,7 @@ export default class LinkTool { const holder = this.make('a', this.CSS.linkContent, { target: '_blank', rel: 'nofollow noindex noreferrer', + draggable: false, }); this.nodes.linkImage = this.make('div', this.CSS.linkImage); From 8435bd50f39e87d2e990041de6ae8b83cd705efb Mon Sep 17 00:00:00 2001 From: hamza! Date: Tue, 20 Sep 2022 10:01:06 +0900 Subject: [PATCH 2/2] update patch in version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cfe481a..3a2de86 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/link", - "version": "2.4.1", + "version": "2.4.2", "keywords": [ "codex editor", "tool",