Camille B?gnis wrote:
> I was trying to find that information but could find only clues, sorry
> if I missed it:
> 
> Is it possible to mark (possibly in CSS) specific elements to be treated
> as read only by the editor?
> The idea is to have a unique document holding content which elements can
> be authored alternatively by one technical writer or another, depending
> on their role.
> 
> I have seen that one can control rendering of elements marked as
> read-only, but how do you mark them so?

This is not done in the CSS.

There is a simple API which is used to mark a subtree as being read-only:
http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmledit/doc/Tree.html#setReadOnly(boolean)

There is also a command (using the above API) which does that:
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/setEditable.html

In practice, one could imagine that you write a documentHook (in Java)
which, based on the role of the XXE user, marks elements as being
read-only or not.
- See
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/documentHook.html
- See http://www.xmlmind.com/xmleditor/_distrib/doc/dev/documenthook.html


Reply via email to