Back to directory
appleple avatar

lite-editor

A Modern WYSIWYG Editor especially for inline elements. Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/appleple/lite-editor.git

177

Stars

10

Forks

10

Watchers

MIT

License

LiteEditor

npm version npm download GitHub license

A Modern WYSIWYG Editor especially for inline elements

Feature

  • focuses on inline elements such as b, a, i, strong
  • Prevent unnecessary tags insertion
  • Control how to make newlines
  • You can register custom button easily

Installation

via npm

npm install lite-editor --save

or yarn

yarn add lite-editor

Usage

require

import LiteEditor from 'lite-editor';
window.addEventListener('DOMContentLoaded',function(){
  new LiteEditor('.js-editor');
});

Document

https://appleple.github.io/lite-editor/about.html

Download

Download ZIP

Plugins

Github

https://github.com/appleple/lite-editor

License

Code and documentation copyright 2017 by appleple, Inc. Code released under the MIT License.

Releases

fix bug when inserting new line at the end of contenteditable

1.5.0の修正で発生したbrのバグを修正

ソースモード表示優先時にはbrをnlに置き換えないように修正 Void Element (閉じタグを必要としない要素)を指定できるように変更