Skip to content

xaos7991/editorjs-target-link

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinkWithTarget Tool

A tool link with target attribute Editor.js.

image

Installation

Get the package via NPM

npm i editorjs-link-with-target

or via Yarn

yarn add editorjs-link-with-target

Include 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': 'Вставьте ссылку'
          }
        }
      }
    }
  }
  
  ...
});

License

MIT

About

Link with target & rel attribute for Editor.js

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 83.1%
  • HTML 8.6%
  • CSS 8.2%
  • Shell 0.1%