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: [...]
TXTextControl.SaveDocumentResult Object The callback function argument for the saveDocument and the saveSelection functions. Introduced: 23.0. Syntax [JavaScript] { data: , streamType: } Properties Property Description data The Document data. streamType Specifies one of the StreamType values.
following example shows how to save the current document and display the received document data in the console. JavaScript TXTextControl.saveDocument(TXTextControl.StreamType.HTMLFormat, function (e) { console.log(e.data); }); Possible console output: [...]…
TXTextControl Object JavaScript API Obsolete. This property will be removed in one of the next versions. Gets or sets if a confirmation dialog should be shown before discarding unsaved changes. Introduced: X14. Syntax JavaScript TXTextControl.saveDocumentQuestionDialogEnabled …
saveDocumentBackColor Property TXTextControl.SaveSettings Object JavaScript API Specifies whether or not the document background color is saved. Syntax JavaScript TXTextControl.SaveSettings.saveDocumentBackColor TXTextControl.SaveSettings.saveDocumentBackColor
or sets whether document target markers are visible. Javascript: TXTextControl.editMode Obsolete. Javascript: TXTextControl.isHyphenationEnabled Obsolete. Javascript: TXTextControl.isLanguageDetectionEnabled Obsolete. Javascript: TXTextControl.isSpellCheckingEnabled Obsolete. Javascript:…
file named custom.js. JavaScript function saveDocument() { TXTextControl.saveDocument(TXTextControl.StreamType.HTMLFormat, function (e) { console.log(e.data); }); } function loadDocument() { TXTextControl.loadDocument(TXTextControl.StreamType.HTMLFormat, btoa('Test')); } function saveDocument()…
save Method TXTextControl Object JavaScript API Saves the current document in a certain format and sends the result back asynchronously by calling a given callback function. Introduced: X18. JavaScript TXTextControl.save( streamType, callback, [ saveSettings], [ errorCallback
+1 704-544-7445 (United States)
+1 855-533-8398 (United States, toll free)
Or send us an email: