Kostadin Cholakov wrote: > > I want to ask if there is some way to make certain elements read-only, > i.e. the user should not be able to modify them either in the tree or > in the styled view? Thanks!
Yes. There is a command which can do that: setEditable. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/setEditable.html This command is based on this API: http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmledit/doc/Tree.html#setReadOnly(boolean) One way to automatically use this API when some of your documents are opened is to develop and declare a DocumentHook. See http://www.xmlmind.com/xmleditor/_distrib/doc/dev/documenthook.html

