<sourceEditor> Configuration Element

This element provides the code view settings for use within Ephox EditLive! for XML.

Note

This element does not apply for the configuration of the Visual Designer.

Configuration Element Tree Structure

<editLive>
     ...
     <sourceEditor ... />
     ...
</editLive>

Optional Attributes

enabled

If set to true users will be able to access the Code view for documents.

Example

The following example would allow users to view the source code of a document within EditLive! for XML.

<editLive>
     ...
     <sourceEditor enabled="true" />
     ...
</editLive> 

Remarks

The <sourceEditor> element can appear only once within the <editLive> element.

If the <sourceEditor> element is to be left blank the element must then be a complete tag, it cannot contain a tag body. Therefore the tag must be closed in the same line. It should appear as below:

<sourceEditor showBodyOnly="false"/>