Locking elements in Author mode

Oxygen general issues.
gabrielhl
Posts: 1
Joined: Fri Apr 17, 2009 10:18 pm

Locking elements in Author mode

Post by gabrielhl »

I could post this as a request but first I'd like to ask if it doesn't exist already. Would it be possible to "lock" certain specific tags/elements in author mode so that they can not be edited?

Let me explain: we have several "document-style" which will need to be edited by a non-XML-saavy person and it would be nice to only allow this person to edit the text in certain specififed tags. For example let's say he could edit whatever is inside <para> but not <h1>. Currently we would do this by using clearly differentiated CSS for each element but this could lead to mistakes.

This could be set much like CSS properties are set, for each element in the document.
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Locking elements in Author mode

Post by Radu »

Dear Gabriel,

This can be done by specifying from the CSS that some elements are not editable. Something like:

Code: Select all


h1{
editable:false;
}
where the "editable" property is an Oxygen extension.

As I understand this is not a good solution for you.
We will try to enhance the Author API so that you can add a listener for modifications and then reject a certain modification if the context is not right.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply