edit-on Pro supports a subset of the CSS properties. Properties not listed here are preserved by the editor, but will not be rendered.
Font family
font-family:font1,font2,fontn;
Any font name.
font-family:arial,verdana;
Font size
font-size:value;
--pt | --pc | --px | --in | --cm | --mm
xx-small | x-small | small | medium | large | x-large | xx-large
font-size:12px;
Font style
font-style:value;
normal | italic
font-style:italic;
Font weight
font-weight:value;
normal | bold
font-weight:bold;
Background
background: value;
color | transparent
Determine a color value using one of the following syntaxes: #0000ff, black, rgb(50%,60%,80%)
background:#0000ff;
Background attachment
background-attachment:value;
fixed | scroll
Determine the scrolling behaviour of a background image.
background-image:url(background.jpg); background-repeat:repeat-y; background-attachment:fixed;
Background color
background-color:value;
color | transparent
Determine a color value using one of the following syntaxes: #0000ff, black, rgb(50%,60%,80%)
background-color:#0000ff;
Background image
background-image:url(URI);
url(URI)
Determine an absolute or relative URL value for the image file (GIF / JPG / JPEG / PNG) which should be display in the background.
background-image: url(http://myserver.com/images/background.gif);
Background repeat
background-repeat:value;
repeat | repeat-x | repeat-y | no-repeat
Determine the repetition of an image (set by background-image) in background.
background-image:url(background.jpg); background-repeat:repeat-y;
Color
background:value;
color
Determine a color value using one of the following syntaxes: #0000ff, black, rgb(50%,60%,80%)
color:#0000ff;
Text alignment
text-align:value;
left | right | center
text-align:center;
Text decoration
text-decoration:value;
none | underline | line-through
text-decoration:line-through;
Vertical alignment
vertical-align:value;
sub | super | baseline
vertical-align:sub;
Bottom margin
margin-bottom:value;
--pt | --pc | --px | --in | --cm | --mm
margin-bottom:12pt;
This style property will only be rendered for the body element.
Top margin
margin-top:value;
--pt | --pc | --px | --in | --cm | --mm
margin-top:12pt;
This style property will only be rendered for the body element.
Left margin
margin-left:value;
--pt | --pc | --px | --in | --cm | --mm
margin-left:12pt;
Right margin
margin-right:value;
--pt | --pc | --px | --in | --cm | --mm
margin-right:12pt;
List style
list-style-type:value;
disc | circle | square | decimal | lower-alpha | uppper-alpha
list-style-type: disc;
List style image
list-style-image: url(value);
ul { list-style-type:none; list-style-image:url(icon.gif); }Table width
width:value;
--px | --%
width:100%;
Border color
border-color:value;
color
Determine a color value using one of the following syntaxes: #0000ff, black, rgb(50%,60%,80%)
border-color:#0000ff;
Border width
border-width:value;
--px | --%
border-width:100%;
Element action
ro-action:value;
Any action defined in the editor's configuration file.
The action value will be available in the context menu for the elements this style applies to.
The action value will only be available for those elements if it is added to the context menu definition in the configuration file.
p { ro-action: MYCUSTOMACTION; }
body { ro-action: CUSTOMACTION1, CUSTOMACTION2; }CDATA action
ro-cdata
The ro-cdata selector allows you to define style properties for CDATA sections.
ro-cdata { ro-action:CDATAPROPERTIES; }Processing instruction action
ro-pi
The ro-pi selector allows you to define style properties for processing instructions.
ro-pi { ro-action:PIPROPERTIES; }Comment action
ro-comment:value;
The ro-comment selector allows you to define style properties for comments.
ro-comment { ro-action:COMMENTPROPERTIES; }Read-only content
ro-readonlycontent:value;
true|false
The content of the elements this style is applied to will become read-only, i.e. it can not be edited or modified. The corresponding elements still can be deleted.
ro-readonlycontent:true;
Read-only element
ro-readonlyelement:value;
true|false
The elements this style is applied to will become read-only, i.e. they can not be edited or modified.
ro-readonlyelement:true;
Content Limit
ro-contentlimit:value;
Any integer value.
This element can only contain up to value characters. Entering more characters than specified by value in this element is not possible.
ro-contentlimit:100;
Read-only element
ro-readonlyelement:value;
true|false
The elements this style is applied to will become read-only, i.e. they can not be edited or modified.
ro-readonlyelement:true;
Formatting Only
ro-formattingonly:value;
(true|false)
The content of this element can not be modified as with ro-readonlycontent . The formatting of the element however can still be modified when this property is set.
This property will not have an effect if ro-readonlycontent is set to true for the same element.
mytag {
ro-readonlycontent:false;
ro-formattingonly:true;
}Always show element
ro-alwaysshowtags:value;
true|false
The custom element this style is applied to is always displayed. Normally custom elements are only displayed while the "SHOWNALLCHAR" mode is active.
ro-alwaysshowtags:true;
Start tag icon
ro-starttagicon:value;
URL pointing to the location of an icon file (possible formats: GIF, JPG and PNG). May be relative to the editor's codebase.
The editor will use the icon indicated by value to display the opening tag of the elements this style is applied to.
The element is only displayed if the "SHOWNALLCHAR" mode is active or if the style ro-alwaysshowtags is applied to this element.
ro-starttagicon:"icons/start.gif";
End tag icon
ro-endtagicon:value;
URL pointing to the location of an icon file (possible formats: GIF, JPG and PNG). May be relative to the editor's codebase.
The editor will use the icon indicated by value to display the closing tag of the element this style is applied to.
The element is only displayed if the "SHOWNALLCHAR" mode is active or if the style ro-alwaysshowtags is applied to this element.
ro-endtagicon:"icons/end.gif";
Maximum width of custom element representation
ro-maxiconwidth:value;
--pt | --pc | --px | --in | --cm | --mm
The editor will use this value to determine the maximum width of the generated custom element representation this style is applied to.
The style is only taken into consideration if no custom icon is specified for the custom element using ro-starttagicon and ro-endtagicon .
ro-maxiconwidth:100px;
Start tag label
ro-starttaglabel:value;
The editor will use the value indicated as label for the opening of the custom element this style is applied to. You can use the keyword attr to select an attribute the style applies to. The value of this attribute will then be used as label for the tag. You can freely combine attribute values and text strings in this way.
The style is only taken into consideration if no custom icon is specified for the custom element using ro-starttagicon and ro-endtagicon .
ro-starttaglabel:"start label" attr(nameofanttribute);
End tag label
ro-endtaglabel:value;
The editor will use the value indicated as label for the closing of the custom element this style is applied to. You can use the keyword attr to select an attribute the style applies to. The value of this attribute will then be used as label for the tag. You can freely combine attribute values and text strings in this way.
The style is only taken into consideration if no custom icon is specified for the custom element using ro-starttagicon and ro-endtagicon .
ro-endtaglabel:"end label: " attr(nameofanttribute);
Hide Class
ro-hideclass:value;
true|false
If this property is set to false, it is not possible to select or apply the CSS class it is defined for in any of the editor's dialogs.
.redarea {
ro-hideclass: true;
color: red;
}Class Description
ro-classdescription:value;
The value of this property determines the name which will be used to display the class it is defined for in the editor's dialogs. For example, if it is set to "Red Text", then the string "Red Text" will be displayed in dialogs such as the style selector combo box instead of the class name itself.
.redarea {
ro-classdescription: "Red Text";
color: red;
}Balloon Width
ro-balloon-width:value;
The value of this property determines the width of the balloons that display changes in comparison mode.
* {
ro-balloon-width: 200px;
}Balloon Color
ro-balloon-color:value;
The value of this property determines the color of the balloons that display changes in comparison mode.
* {
ro-balloon-color: #0689cc;
}Selected Balloon Color
ro-balloonselected-width:value;
The value of this property determines the width of selected balloons in comparison mode.
* {
ro-balloonselected-width: #0689cc;
}Selected Balloon Color
ro-balloonselected-color:value;
The value of this property determines the color of selected balloons in comparison mode.
* {
ro-balloonselected-color: #0689cc;
}