TXTextControl.StreamType.HTMLFormat property Specifies HTML format (Hypertext Markup Language). Syntax [JavaScript] StreamType.HTMLFormat Limitations Read only.
following example shows how to append a short HTML snippet to the current document in the widget. [JavaScript] var html = "This is some HTML text."; var encoded = btoa(html); // btoa base-64-encodes strings. TXTextControlWeb.appendDocument(TXTextControl.StreamType.HTMLFormat, encoded);
data. Example The following example shows how to load a short HTML document into the web editor. [JavaScript] var html = "This is some HTML text."; var encoded = btoa(html); // btoa base-64-encodes strings. TXTextControlWeb.loadDocument(TXTextControl.StreamType.HTMLFormat, encoded);
successfully. Example The following example shows how to save the current document and display the received document data in the console. [JavaScript] TXTextControlWeb.saveDocument(TXTextControl.StreamType.HTMLFormat, function (e) { console.log(e.data); }); Possible console output: [...]
appendDocument Method TXTextControl Object JavaScript API Appends text in a certain format to the current document. Introduced: X15. JavaScript TXTextControl.appendDocument( streamType, base64Data) TXTextControl.appendDocument( streamType, base64Data) Parameters Parameter Description…
the next versions. Loads text in a certain format into the current selection. Introduced: X13. JavaScript TXTextControl.loadSelection( streamType, base64Data) TXTextControl.loadSelection( streamType, base64Data) Parameters Parameter Description streamType Specifies one of the numerical…
calling a given callback function. Introduced: X13. JavaScript TXTextControl.saveDocument( streamType, callback, [ saveSettings], [ errorCallback]) TXTextControl.saveDocument( streamType, callback, [ saveSettings], [ errorCallback]) Parameters Parameter Description streamType Specifies…
Introduced: X13. JavaScript TXTextControl.loadDocument( streamType, base64Data, callback, [ loadSettings], [ errorCallback]) TXTextControl.loadDocument( streamType, base64Data, callback, [ loadSettings], [ errorCallback]) Parameters Parameter Description streamType Specifies one of the…
+1 704-544-7445 (United States)
+1 855-533-8398 (United States, toll free)
Or send us an email: