Skip to content

rehiy/web-wysiwyg

Repository files navigation

web wysiwyg editor

A simple WEB wysiwyg editor, without js library dependency, easy to integrate with Angular, React and Vue

Demo: https://apps.rehiy.com/web-wysiwyg/

Package usage

install package and copy static files

npm i web-wysiwyg
cp -a node_modules/web-wysiwyg/assets/* src/assets/

create editor template

<div class="wysiwyg wysiwyg-content">
    <div contenteditable="true" data-placeholder="请输入内容..."></div>
</div>

init editor instance

import { NativeEditor } from 'web-wysiwyg';
new NativeEditor({ selector: '.wysiwyg' });

Developer Description

Build a package

npm run build

Develop mode

npm start