<wordImport> Element

This element configures the manner in which Ephox EditLive! for Java reacts when text is imported from Microsoft Word.

Element Tree Structure

<editLiveForJava>
    <wordImport>

<editLiveForJava>
     ...
     <wordImport ... />
     ...
</editLiveForJava>

Optional Attributes

Attribute Description
styleOption This attribute specifies the user prompting and behaviour of EditLive! for Java upon detecting an import from Microsoft Word.  This attribute has three possible values; user_prompt, merge or clean.  
  • The user_prompt setting will result in EditLive! for Java prompting the user as to whether they wish to import Microsoft Word styles or strip them from the imported text.
  • The merge setting will result in the Microsoft Word styles being merged with the current style information within EditLive! for Java.
  • The clean setting will result in EditLive! for Java stripping the Microsoft Word Styles from the imported text.

Note:  Styles imported from Microsoft Word will not overwrite styles which already exist within the document.

Example

The following example demonstrates how to set EditLive! for Java to prompt the user with style import options every time a Microsoft Word import is detected.

    <editLiveForJava>
        ...
        <wordImport styleOption="user_prompt" />
        ...
    </editLiveForJava>

Remarks

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

The <wordImport> 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:

    <wordImport styleOption=... />

See Also