Javascript: TXTextControl.SaveSettings.CssSaveMode Enumeration
Description
HTML only. Specifies how to save stylesheet data with an HTML document.
Members
| Member | Description |
|---|---|
| None | All format information is saved in the body of the HTML document through HTML tags. |
| CreateFile | Stylesheets are saved in a newly created CSS file. This file has the same name and location as the corresponding HTML file or is specified through the SaveSettings.CssFileName property. The file is only created if it does not exist. If the HTML document is saved in a memory buffer, this setting cannot be used. |
| OverwriteFile | Stylesheets are saved in a newly created CSS file. This file has the same name and location as the corresponding HTML file or is specified through the SaveSettings.CssFileName property. If the file already exists, it is overridden. If the HTML document is saved in a memory buffer, this setting cannot be used. |
| Inline | Stylesheets are saved in the head of the HTML document. |
Examples
The following example uses TXTextControl.Txtextcontrol.Savesettings.CssSaveMode.CreateFile (stylesheets are saved in a newly created CSS file. This file has the same name and location as the corresponding HTML file or is specified through the SaveSettings.CssFileName property. The file is only created if it does not exist. If the HTML document is saved in a memory buffer, this setting cannot be used.) in a document-editing workflow.
const value = TXTextControl.Txtextcontrol.Savesettings.CssSaveMode.CreateFile;
console.log("Stylesheets are saved in a newly created CSS file. This file has the same name and location as the corresponding HTML file or is specified through the SaveSettings.CssFileName property. The file is only created if it does not exist. If the HTML document is saved in a memory buffer, this setting cannot be used.", value);