XStandard knowledge base - how do I open or save documents?

The XHTML WYSIWYG Editor For Desktop & Web Applications

How do I open or save documents?

XStandard is a form control, and like other form controls (such as textfields, listboxes, radio buttons, etc.), the editor has no independent Open or Save button. Instead, it is the parent application (a content management system using XStandard) that programmatically loads content into and retrieves content from the editor.

The following are examples of how to programmatically load content into and get content out of XStandard, in Web and desktop environments.

Web environment

Put content into the editor

Content is loaded into the editor via a <param> tag. For example:

  1. <param name="Value" value="Hello World!" />

Note, when you put content into the Value <param> tag, the content needs to be HTML escaped.

Get data from the editor

Server-side scripts read data from the editor just as they would from any other form control in an HTTP POST. For example, an ASP script would read data from the editor like this:

  1. Request.Form("xhtml1").Value

Desktop application environment

Put content into the editor

Content is loaded into the editor via the Value property. For example, a Visual Basic application would load content into the editor like this:

  1. XHTMLEditor1.Value = "Hello World"

Get data from the editor

The host application would read data from the editor via the Value property. For example, in a Visual Basic application, this is done using:

  1. MsgBox XHTMLEditor1.Value