Page tree
Skip to end of metadata
Go to start of metadata

This element configures the manner in which EditLive! reacts when a user attempts to paste plain text into the editor. This includes plain text copied from locations such as Microsoft Notepad.

Configuration Element Tree Structure

<editLive>
<textImport>

<editLive>
     ...
     <textImport ... />
     ...
</editLive>

Optional Attributes

linebreakCreatesBR

This boolean value specifies whether pasted newline characters are preserved as <br /> tags or whether paragraphs are created instead.

Default value: false

oneLineBreakPerParagraph

This boolean value specifies the behaviour for copying content from EditLive! into plain text formats. Setting this attribute to true will append a single newline character after each paragraph found. Setting this attribute to false will append two newline characters after each paragraph found.

Default value: false

Example

The following example demonstrates how to set EditLive! to preserve pasted newline characters from plain text as <br /> tags.

<editLive>
     ...
     <textImport linebreakCreatesBR="true" />
     ...
</editLive> 

Remarks

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

If the <textImport> 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:

<textImport linebreakCreatesBR=.../>
  • No labels