<sourceEditor> Element

This element provides the HTML filter settings for use within Ephox EditLive! for Java.

Element Tree Structure

<editLiveForJava>
    <sourceEditor>

<editLiveForJava>
     ...
     <sourceEditor ... />
     ...
</editLiveForJava>

Optional Attributes

Attribute Description
showBodyOnly If set to true only the HTML between the body tags will be shown in HTML View mode.  HTML outside of the body (eg. style information) will be maintained.
Note:  This attribute is a boolean and can only be true or false.
Default Value:  false

Example

The following example would ensure that only the content between the <BODY> tags was displayed.

    <editLiveForJava>
        ...
        <sourceEditor showBodyOnly="true" />
        ...
    </editLiveForJava>

Remarks

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

The <sourceEditor> element must be a complete tag, it cannot contain a tag body.  Therefore the tag must be closed in the same line.  See the example below:

    <sourceEditor showBodyOnly=... />

See Also