Make given element editable by user
$ npm install make-editable
var makeEditable = require('make-editable')
var editable = makeEditable(document)
editable.selectAll()
editable.bold()
editable.link('http://foobar.com')
editable.img('http://foo.com/bar.jpg')
editable.exec(command, value, showDefaultUI)
- exec: exec(commandName, value, showUI)
- bold:
bold
- italic:
italic
- underline:
underline
- color:
foreColor
- bgcolor:
backColor
- fontName:
fontName
- fontSize:
fontSize
- plain:
removeFormat
- center:
justifyCenter
- justify:
justifyFull
- left:
justifyLeft
- right:
justifyRight
- indent:
indent
- outdent:
outdent
- img:
insertImage
- link:
link
- unlink:
unlink
- orderedList:
insertOrderedList
- unorderedList:
insertUnorderedList
- selectAll:
selectAll
- undo:
undo
- redo:
redo
- copy:
copy
- paste:
paste
- delete:
delete