execCommand and contenteditable

suggest change

Syntax

Parameters

commandId value
⋮ Inline formatting commands  
backColor Color value String
bold  
createLink URL String
fontName Font family name
fontSize “1”, “2”, “3”, “4”, “5”, “6”, “7”
foreColor Color value String
strikeThrough  
superscript  
unlink  
⋮ Block formatting commands  
delete  
formatBlock “address”, “dd”, “div”, “dt”, “h1”, “h2”, “h3”, “h4”, “h5”, “h6”, “p”, “pre”
forwardDelete  
insertHorizontalRule  
insertHTML HTML String
insertImage URL String
insertLineBreak  
insertOrderedList  
insertParagraph  
insertText Text string
insertUnorderedList  
justifyCenter  
justifyFull  
justifyLeft  
justifyRight  
outdent  
⋮ Clipboard commands  
copy Currently Selected String
cut Currently 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:


execCommand and contenteditable:
* Syntax

Table Of Contents
11 Arrays
12 Objects
14 Classes
16 Map
17 Set
24 Loops
27 Date
29 Scope
30 AJAX
35 Cookies
41 JSON
44 Fetch
45 Modules
46 Screen
57 execCommand and contenteditable
64 Console
68 Symbols
73 Modals
76 Events
86 Proxy
89 WeakMap
90 WeakSet
102 Tilde