Skip to content

kommitters/editorjs-break-line

🚨 URGENT: Maintenance Transition 🚨

This project is officially entering a period of passive maintenance and will no longer receive active development or major bug fixes from kommit.

We are fully committed to keeping this project alive within the open-source community! We believe in the value this project provides, and we are actively seeking new, passionate contributors to take over ownership.

πŸš€ Take Over This Project!

We need a reliable steward for the future development of this repository.

Why Take Ownership?

Full Control: Gain administrative rights and full control over the project's direction.

Visibility: Showcase your expertise by leading an established open-source project.

Impact: Directly support the users who rely on this plugin.

How to Request Ownership

To apply for project ownership, you must create an issue using our dedicated template:

  1. Go to the Issues page
  2. Select the "Project Ownership / Maintainer Request" template
  3. Fill out all required sections completely
  4. Submit the issue for review

Important: Ownership requests submitted through other channels (comments, pull requests, emails) will not be considered. Please use the official issue template to ensure your application is properly reviewed.

EditorJS BreakLine Tool

stability-stable Coverage Status OpenSSF Best Practices OpenSSF Scorecard

Break Line and divider Tool for Editor.js.

Notes

  • Adds an empty block
  • Adds a divider block
  • Keyboard shortcut CMD+SHIFT+ENTER

Installation

Install via NPM

Get the package

$ npm i --save-dev editorjs-break-line

Include module at your application

import BreakLine from 'editorjs-break-line';

Load from CDN

You can load a specific version of the package from jsDelivr CDN.

Require this script on a page with Editor.js.

<script src="https://cdn.jsdelivr.net/npm/editorjs-break-line"></script>

Usage

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

const editor = EditorJS({
  tools: {
    breakLine: {
      class: BreakLine,
      inlineToolbar: true,
      shortcut: 'CMD+SHIFT+ENTER',
    },
  }
});

Config Params

No config params required.

Tool's tunes

  1. Add a divider line

Output data

Field Type Description
divider boolean Add a divider line

Data

{
  "type": "breakLine",
  "data": {
      "divider": true
  }
},

Development

Development mode

$ yarn build:dev

Production release

  1. Create a production bundle
$ yarn build
  1. Commit dist/bundle.js

Run tests

$ yarn test

Code of conduct

We welcome everyone to contribute. Make sure you have read the CODE_OF_CONDUCT before.

Contributing

For information on how to contribute, please refer to our CONTRIBUTING guide.

Changelog

Features and bug fixes are listed in the CHANGELOG file.

License

This library is licensed under an MIT license. See LICENSE for details.

Acknowledgements

Made with πŸ’™ by kommitters Open Source

About

Break Line and divider Tool for Editor.js.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Contributors 14