1.0.5 • Published 2 years ago
davia-editorjs-link-with-target v1.0.5
LinkWithTarget Tool
A tool link with target attribute Editor.js.

Installation
Get the package via NPM
npm i editorjs-link-with-targetor via Yarn
yarn add editorjs-link-with-targetInclude module at your application
import LinkWithTarget from 'editorjs-link-with-target'Usage
Add a new Tool to the tools property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
link: {
class: Hyperlink
}
...
},
...
i18n: {
tools: {
messages: {
tools: {
link: {
'Open in new window': 'Открыть ссылку в новом окне',
Save: 'Сохранить',
'Add a link': 'Вставьте ссылку'
}
}
}
}
}
...
});