From 1ee2ff6e2fbaaeedf6e0bdd911d70048a5b2a68c Mon Sep 17 00:00:00 2001 From: Gajendra Jena Date: Tue, 27 Jun 2023 14:16:54 +0530 Subject: [PATCH 1/2] Add pasteConfig which includes
- implement onPaste and pasteConfig for DelimiterWithPaste (Add pasteConfig which includes
)[https://github.com/editor-js/delimiter/issues/27] --- src/index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/index.js b/src/index.js index c09f926..bd2d8d7 100644 --- a/src/index.js +++ b/src/index.js @@ -103,5 +103,23 @@ export default class Delimiter { title: 'Delimiter' }; } + + /** + * Delimiter onPaste configuration + * + * @public + */ + static get pasteConfig() { + return { tags: ['HR'] }; + } + + /** + * On paste callback that is fired from Editor + * + * @param {PasteEvent} event - event with pasted data + */ + onPaste(event) { + this.data = {}; + } } From 86d60328ff6292c8d5f86ac59a84e4cd09cf6827 Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Sat, 17 Aug 2024 11:44:57 +0300 Subject: [PATCH 2/2] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c503aa5..30976a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/delimiter", - "version": "1.3.0", + "version": "1.3.1", "keywords": [ "codex editor", "delimiter",