Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 637 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 637 Bytes

Luna Editor

Wysiwyg editor.

Demo

https://luna.liriliri.io/?path=/story/editor

Install

Add the following script and style to your page.

<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/luna-editor/luna-editor.css" />
<script src="//cdn.jsdelivr.net/npm/luna-editor/luna-editor.js"></script>

You can also get it on npm.

npm install luna-editor --save
import 'luna-editor/luna-editor.css'
import LunaEditor from 'luna-editor'

Usage

const container = document.getElementById('container')
const editor = new LunaEditor(container)
console.log(editor.html())