HTML and CSS Reference
In-Depth Information
hiliteColor
italic
removeFormat
strikethroug
subscript
superscript
underline
unlink
Table B.6 lists commands for formatting inline elements.
Table B.7 lists commands for formatting block elements.
Table B.7. Block formatting commands
delete
formatBlock
forwardDelete
indent
insertHorizontalRule
insertHTML
insertImage
insertLineBreak
insertOrderedList
insertParagraph
insertText
insertUnorderedList
justifyCenter
justifyFull
justifyLeft
justifyRight
outdent
Table B.8 lists commands for other formatting and editing issues.
Table B.8. Miscellaneous commands
copy
cut
defaultParagraphSeparator
paste
redo
selectAll
styleWithCSS
undo
useCSS
B.1.4. Drag and Drop API
The Drag and Drop API is another API that's reverse engineered from the IE implement-
ation. The API has three main parts: the dataTransfer object, the dataTransfer
item, and a collection of events. These are covered in tables B.9 , B.10 , and B.11 , respect-
ively. A drag operation will create a dataTransfer object; this will contain one or more
dataTransfer items in the items attribute, and you can gain access to both by listen-
ing to the events.
Table B.9. dataTransfer object
Attribute/method
Description
dropEffect
This is the type of operation taking place (copy, link, move, none).
Contains the type of operations allowed (copy, copyLink, copyMove, link,
linkMove, move, all, uninitialized, none).
effectAllowed
 
 
 
Search WWH ::




Custom Search