Skip to content

Commit

Permalink
Merge pull request #36 from gajendrajena/master
Browse files Browse the repository at this point in the history
Add pasteConfig which includes <hr>
  • Loading branch information
neSpecc authored Aug 17, 2024
2 parents 4ca1c1c + 0991f0f commit 909a1f5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@editorjs/delimiter",
"version": "1.4.0",
"version": "1.4.1",
"keywords": [
"codex editor",
"delimiter",
Expand Down
18 changes: 18 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
}
}

0 comments on commit 909a1f5

Please sign in to comment.