Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@editorjs/underline

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@editorjs/underline

Inline tool for underlining text fragments

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16K
decreased by-28.53%
Maintainers
1
Weekly downloads
 
Created
Source

Underline Tool

Inline tool for underlining text fragments for the Editor.js

Installation

Install via NPM

Get the package

npm i --save @editorjs/underline
yarn add @editorjs/underline

Include module at your application

import Underline from '@editorjs/underline';

Download to your project's source dir

  1. Upload folder dist from repository
  2. Add dist/bundle.js file to your page.

Load from CDN

You can load the package from jsDelivr CDN and require the script on a page with Editor.js.

<script src="https://cdn.jsdelivr.net/npm/@editorjs/underline@latest"></script>

Usage

Add a new Tool to the tools property of the Editor.js initial config.

import EditorJs from '@editorjs/editorjs';
import Underline from '@editorjs/underline';

var editor = new EditorJS({
  // ...
  tools: {
    // ...
    underline: Underline
  },
});

Config Params

This Tool has no config params

Output data

Underlined text will be wrapped with a u tag with an cdx-underline class.

{
    "type" : "text",
    "data" : {
        "text" : "Create a directory for your module, enter it and run <u class=\"cdx-underline\">npm init</u> command."
    }
}

Keywords

FAQs

Package last updated on 10 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc