You are here: Symbol Reference > htmledit Namespace > Classes > THtmlEditor Class > THtmlEditor Members
HTML Editor Library
ContentsIndexHome
PreviousUpNext
THtmlEditor Members

The following tables list the members exposed by THtmlEditor.

 
Name 
Description 
 
Editor caret  
 
Highligted block element containing caret.  
 
This is fAddictSpell, a member of class THtmlEditor. 
 
This is fAfterLoad, a member of class THtmlEditor. 
 
This is fChanged, a member of class THtmlEditor. 
 
This is fCurrentFile, a member of class THtmlEditor. 
 
This is FMXCaret, a member of class THtmlEditor. 
 
This is fOnChange, a member of class THtmlEditor. 
 
This is fOnSpellCheck, a member of class THtmlEditor. 
 
This is fOnWordCorrection, a member of class THtmlEditor. 
 
This is fPreserveStyleOnNewBlock, a member of class THtmlEditor. 
 
This is fReadOnly, a member of class THtmlEditor. 
 
This is fSpellChecking, a member of class THtmlEditor. 
 
This is fWordCorrection, a member of class THtmlEditor. 
 
Undo history  
 
Current text style attributes. Many text style functions are accessible via this class.
Changing TextStyle properties will change style of current selection, or current word at cursor  (if nothing is selected) or  style of subsequent text entered by user. 
 
 
HTML Editor  
 
Name 
Description 
 
Add char at caret position  
 
Add horizontal divider <hr> at caret position  
 
Insert HTML at caret position. HTML is wrapped into <span> tag   
 
This is the overview for the AddImageAtCursor method overload. 
 
Add line break  
 
Add new paragraph at caret position  
 
Add text string at caret positon  
 
Add table at caret position.  
 
Add new text element before or after specified element  
 
Returns true if undo history is not empty  
 
Move caret one line down  
 
This is CaretEnd, a member of class THtmlEditor. 
 
Move caret to first cell in table row  
 
Move caret to last cell in table row  
 
This is CaretLineEnd, a member of class THtmlEditor. 
 
This is CaretLineStart, a member of class THtmlEditor. 
 
This is CaretNext, a member of class THtmlEditor. 
 
Move caret to next cell in table row  
 
Move caret to next word  
 
This is CaretPageDown, a member of class THtmlEditor. 
 
This is CaretPageUp, a member of class THtmlEditor. 
 
Move caret to the end of a current paragraph  
 
Move caret to start of current paragraph  
 
This is CaretPrevious, a member of class THtmlEditor. 
 
Move caret to previous cell in table row  
 
Move caret to previous word  
 
Caret moving 
 
This is the overview for the CarettoElement method overload. 
 
Move caret to the end of specified element  
 
Move caret to the start of specified element  
 
Move caret one line up  
 
This is CharAtCursor, a member of class THtmlEditor. 
 
Copy current selection to clipboard as HTML and text  
 
This is Create, a member of class THtmlEditor. 
 
Create an HTML with search results. This method could be used to implement a search window, see Editor demo application.  
 
Creates table of contents fpr document. See Editor demo application for details.
Document should contain <h1>...<h5> tags for this method to work.
 
 
Returns true if current element is text element 
 
Current element (containig caret) as TTextElement element.
Use this function only after CurrentIsText checking
 
 
Cut current selection to clipboard as HTML and text  
 
Increase indent of selection or current block if selection is empty  
 
This is DeleteBlockElement, a member of class THtmlEditor. 
 
Delete char from text element or delete full element for non-text elements  
 
Delete element and optionally add to undo history  
 
Delete current selection  
 
This is DeleteTextElement, a member of class THtmlEditor. 
 
This is Destroy, a member of class THtmlEditor. 
 
Disable caret  
 
Use this method to notify the editor of any changes in document.  
 
Convert Document coordinate to screen coordinate  
 
This is DropImages, a member of class THtmlEditor. 
 
Enable caret  
 
This is FMXCreateCaret, a member of class THtmlEditor. 
 
This is FMXGetCaret, a member of class THtmlEditor. 
 
This is FMXHideCaret, a member of class THtmlEditor. 
 
This is FMXShowCaret, a member of class THtmlEditor. 
 
This is GetAbsoluteCaretPostion, a member of class THtmlEditor. 
 
Return element by its absolute position in document. Absolute position is  calculated by summing a visual length of all text elements and images (length=1).  
 
Increase indent of selection or current block if selection is empty  
 
Insert (or move) element into other element at specified position.
If destination element is text it will be divided into two new text elements.
 
 
This is ListPara, a member of class THtmlEditor. 
 
This is Paint, a member of class THtmlEditor. 
 
caret 
 
Paste text or HTML from clipboard at caret position  
 
Paste image from clipboard at caret position  
 
This is RecreateCaret, a member of class THtmlEditor. 
 
Calculate document styles, layout and (optionally) repaint the editor window  
 
Register autoreplace rule  
 
This is RemoveBlockElement, a member of class THtmlEditor. 
 
Restore caret position  
 
Save caret position  
 
This is Scroll, a member of class THtmlEditor. 
 
Returns true if selection is not empty  
 
Select word at caret position  
 
This is SetAbsoluteCaretPosition, a member of class THtmlEditor. 
 
Set text alignment for selection or current block  
 
This is SetCaret, a member of class THtmlEditor. 
 
This is SetCarettoPoint, a member of class THtmlEditor. 
 
This is SetCurrent, a member of class THtmlEditor. 
 
Set header level for current block. Level 0 = p. level 1-5 = h1-h5  
 
Set line height (CSS line-height) for current block  
 
Convert selection to ordered or unordered list  
 
This is SetOnSpellCheck, a member of class THtmlEditor. 
 
This is SetSpellChecking, a member of class THtmlEditor. 
 
This is SplitBlock, a member of class THtmlEditor. 
 
Split block at caret position  
 
This is SplitListItem, a member of class THtmlEditor. 
 
Wrap current selection by tag  
 
This is UnionElements, a member of class THtmlEditor. 
 
This is UnlistItem, a member of class THtmlEditor. 
 
Remove list style from current selection  
 
Remove specified tag from current selection. If attributes parameter is not empty only tags with same attributes (and values) will be removed  
 
This is UnwrapbyTag, a member of class THtmlEditor. 
 
Update caret position  
 
Word at specified screen point.  
 
Word at caret position  
 
This is WrapBlock, a member of class THtmlEditor. 
 
returns last element 
 
Name 
Description 
 
Returns absolute caret position at document. Absolute position is calculated by summing a visual length of all text elements and images (length=1).
This property can be used for saving and restoring caret position.
 
 
Return text or image element at caret position  
 
Name of the file loaded into the editor  
 
This is Modified, a member of class THtmlEditor. 
 
Name 
Description 
 
Use this event for integration with spellchecking systems.
Note that HtmlEditor has build-in integration with Addict which do not require using this event.
 
 
Name 
Description 
 
Use this property enable live spellchecking and word correction via Addict library.  
 
Occurs when new document is loaded into the editor.
Write an AfterLoad event handler to take specific action whenever the  new document is loaded into the editor or new blank document is created.
 
 
This is CanFocus, a member of class THtmlEditor. 
 
Occurs when editor caret is moved into new position.
Use Current property to get a current element and Caret.CurrentChar to get index of char at caret. 
 
 
Occurs when the text for the editor may have changed.
Write an OnChange event handler to take specific action whenever the  document may have changed. Use the Modified property to see if a change actually occurred. Note that HTML property will not reflect the changes. Use Doc.InnerHTML to get a current text.
 
 
This is OnKeyDown, a member of class THtmlEditor. 
 
This is OnKeyPress, a member of class THtmlEditor. 
 
This is OnSpellCheck, a member of class THtmlEditor. 
 
Use this property to preserve current style for new blocks. For example, new para created when user press Enter will have same font size, name and color as current.  
 
Determines whether the user can change the text of the editor. To restrict the editor to display only, set the ReadOnly property to true. Set ReadOnly to false to allow the contents of the editor to be edited. Setting ReadOnly to true ensures that the text is not altered, while still allowing the user to select text. The selected text can then be manipulated by the application, or copied to the Clipboard.  
 
Enable or disable live spellchecking.  
 
Enable or disable automatic word correction. For word correction to work Addict property should be set or OnWordCorrection event handler implemented.  
Copyright (c) 2013. All rights reserved.
What do you think about this topic? Send feedback!