display Attribute

Description

The display attribute specifies what type of rendering area should be allocated to the relevant tag. It also affects the way in which EditLive! for XML interprets the tag when parsing the content.

Permitted Values

block

The tag and content are displayed. The tag must contain content, if the tag does not contain content then it is removed. Custom block tags will not be automatically wrapped within other tags.

inline

The tag and content, if present, are displayed. The tag may or may not contain content. If the tag does not contain any content on the tag will be rendered. Custom inline tags will be automatically wrapped within a block tag (i.e. <P>).

empty

Only the tag is displayed. This display type should only be used with custom tags that do not contain content.

Example

The following example specifies that the custom tag <MyTag> is to be rendered and interpreted as an inline tag and will be rendered with the label Custom Tag.

MyTag{
  display: inline;
  ephox-label: Custom Tag
}