Page 1 of 1

Is it possible to make some part of dita topic read-only

Posted: Mon Jun 06, 2016 2:08 pm
by mitpatoliya
Hi,
I want to check weather it is possible to make some part of dita file read-only?
For instance one dita file contains 3 to 5 paras and I want to make 2&3rd para as read only to protect it from editing. Is it possible to do that?

Thanks in advance.

Re: Is it possible to make some part of dita topic read-only

Posted: Mon Jun 06, 2016 4:35 pm
by cristi_talau
Hello,

We have a custom CSS property: -oxy-editable which makes certain elements read-only.
You will have to:
- add a special attribute on those elements
- add modify the DITA CSS with a rule that matches on those elements and applies the "-oxy-editable: false" property. Alternatively, you can specify a CSS to be loaded from a plugin [1]

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... -extension