TTMSFNCRichEditorHTMLIO Class
I/O adapter that saves rich editor content as HTML and loads HTML back into the editor; supports inline images, custom head content, hyperlink targets, and encoding options.
API unit family: TMSFNCRichEditorIO
Inherits from: TTMSFNCRichEditorIO
Syntax
TTMSFNCRichEditorHTMLIO = class(TTMSFNCRichEditorIO)
Properties
Name
Description
BodyClass
CSS class name applied to the <body> element of the saved HTML.
Head
Additional HTML lines inserted into the <head> section of the saved document.
HyperlinkTarget
Value of the target attribute added to hyperlink anchors in the saved HTML.
InlineImages
When True, images are embedded as base-64 data URIs; when False, external file references are used.
PlainHTML
When True, the output is plain HTML without proprietary encoding or metadata extensions.
RichEditor
The rich editor whose content is saved or loaded by this adapter. (inherited from TTMSFNCRichEditorIO)
SpaceAsNbSp
When True, space characters are converted to non-breaking spaces (&nbsp;) in the output.
Methods
Name
Description
InsertHTML
Inserts the provided HTML string at the current caret position.
Load
Loads HTML from the specified file into the editor.
LoadHTML
Replaces the entire editor content with the provided HTML string.
Save
Saves the rich editor content to the provided stream in the adapter's format. (inherited from TTMSFNCRichEditorIO)
Events
Name
Description
OnImageNotFound
Fires when an image referenced in loaded HTML cannot be found on disk.