Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

mfillmer/easyEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easyEditor

Get library

  1. clone this repo
  2. cd into it
  3. run npm install
  4. run wepback
  5. go to dist
  6. there is a file easyEditor.js

Usage

command description
easyEditor.init(element:HTMLElement, target?:HTMLElement) makes the content of element editable. Optionally, the target element for the toolbar is defined.
easyEditor.exit() exits edit mode, removes toolbar
easyEditor.get_content() returns content as HTML
easyEditor.set_content(content:string) sets content of editor to content
easyEditor.attach_toolbar() moves toolbar above editable element
easyEditor.detach_toolbar() moves toolbar to the contextmenu

About

simple wysiwig editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published