DHTMLX Docs & Samples Explorer

dhtmlxEditor API Methods

dhtmlXEditor Object

alignCenter centres seleted text

alignJustify makes text to take the entire space available

alignLeft aligns selected text along the left margin

alignRight aligns selected text along the right margin

applyBold makes selected text bold

applyH1 applies H1 to selected block of text

applyH2 applies H2 to selected block of text

applyH3 applies H3 to selected block of text

applyH4 applies H4 to selected block of text

applyItalic makes seleted text italic

applyStrikethrough makes seletion strikethroughed

applySub applies subscript

applySuper applies superscript

applyUnderscore makes selection underscored

attachEvent attaches an event handler to webbar

checkEvent returns true if event exists

createBulList creates bullet list

createNumList creates numbered list

decreaseIndent decreases indent of text block

detachEvent removes an event handler

getContent gets html content of editor document

increaseIndent increases indent of text block

setContent sets content to editor document

setContentHTML sets content from the html document to editor document