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

Post here questions and problems related to editing and publishing DITA content.
mitpatoliya
Posts: 14
Joined: Wed May 25, 2016 4:51 pm

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

Post 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.
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

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

Post 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
Post Reply