-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks Hussein for this answer,

I need one more precision if possible: in some cases, the whole document
is read-only, and the user only has the right to modify some sections
inside it. Is this feasabe as well? Like defining exceptions in a
read-only tree?

Cheers,

Camille.

Hussein Shafie a ?crit :
> 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
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEPhs3jv9P65BfOUMRAvUEAJ97BqVayghtE3LtRL+zfNU2X0FbfgCfWZnS
K+dUuE3+qJQfAhiQE5wzKa4=
=GRhe
-----END PGP SIGNATURE-----

Reply via email to