Locking
In WYSIWYG mode, areas of content can be locked (made read-only). Elements can be locked by specifying the following CSS vendor-specific extension:
Name | Values | Initial value | Applies to | Inherited? | Percentages | Media groups |
---|
-xs-lock | yes | no | true | false | inherit | no | all | yes | n/a | all |
The following example locks all elements except an element with ID "content":
body {
color: black;
background-color: white;
-xs-lock: yes;
}
#content {
border: 1px dashed red;
-xs-lock: no;
}
The -xs-lock
property can be added to a CSS file that is referenced by the following <param>
tag:
<param name="CSS" value="http://yourserver/format.css" />
Or it can be added to an editor specific CSS file referenced by the following <param>
tag:
<param name="EditorCSS" value="http://yourserver/editor.css" />
Locking properties can also be applied at run-time. Here is a Visual Basic example:
XHTMLEditor1.EditorCSS = "h1 {-xs-lock: yes}"