Locking elements in Author mode
Oxygen general issues.
-
- Posts: 1
- Joined: Fri Apr 17, 2009 10:18 pm
Locking elements in Author mode
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.
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.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Locking elements in Author mode
Dear Gabriel,
This can be done by specifying from the CSS that some elements are not editable. Something like:
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
This can be done by specifying from the CSS that some elements are not editable. Something like:
Code: Select all
h1{
editable:false;
}
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service