JavaScript edit

execCommand and contenteditable

Syntax

Parameters

 

commandIdvalue
⋮ Inline formatting commands 
backColorColor value String
bold 
createLinkURL String
fontNameFont family name
fontSize“1”, “2”, “3”, “4”, “5”, “6”, “7”
foreColorColor value String
strikeThrough 
superscript 
unlink 
⋮ Block formatting commands 
delete 
formatBlock“address”, “dd”, “div”, “dt”, “h1”, “h2”, “h3”, “h4”, “h5”, “h6”, “p”, “pre”
forwardDelete 
insertHorizontalRule 
insertHTMLHTML String
insertImageURL String
insertLineBreak 
insertOrderedList 
insertParagraph 
insertTextText string
insertUnorderedList 
justifyCenter 
justifyFull 
justifyLeft 
justifyRight 
outdent 
⋮ Clipboard commands 
copyCurrently Selected String
cutCurrently Selected String
paste 
⋮ Miscellaneous commands 
defaultParagraphSeparator 
redo 
selectAll 
styleWithCSS 
undo 
useCSS 

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Table Of Contents
17 Map
18 Set
28 Date
31 AJAX
42 JSON
58 execCommand and contenteditable
104 Tilde
107 Events
  ↑ ↓ to navigate     ↵ to select     Esc to close