Intersoft WebTextEditor Documentation
Server side HTML
See Also Send Feedback
Intersoft WebTextEditor > WebTextEditor > Editing Architecture > Save to HTML > Server side HTML

Glossary Item Box

In the server side, WebTextEditor provides SaveContentToFile method which includes a handful of save options. The save options are provided to handle numerous common scenarios in saving operation.

By default, WebTextEditor will save only editor's content to the file. To save the content with full html declaration, please specify saveFullHTML parameter to true. Optionally, you can also specify the HTML document type declaration (i.e, XHTML DocType) by specifying the docType parameter. For further information, please refer to the following parameter information.

The following table lists the parameters of SaveContentToFile method:

Parameter name Data Type Description
filename String Specifies the complete file path and name of the saved file
sectionName String Determines which section's content of WebTextEditor to be saved. This parameter is used in multiple sections mode.
docType WebTextEditorHtmlDocType Specifies whether the content of WebTextEditor should be saved with HTML or XHTML doctype. If docType is specified, WebTextEditor will automatically add the selected doctype declaration to the saved file.
title String Determines the title of the saved file. This parameter can be used if docType is specified.
saveFullHTML Boolean Determines whether WebTextEditor should produce complete HTML content, which includes valid doctype declaration, opening <html>, and <body> and so on.

See Also

Other Resources
Client side HTML

©2013. All Rights Reserved.