Restricting Context Menus
Posted: Sat Oct 08, 2011 12:24 am
Hi,
I've been dabbling in the API and am wondering if there is a way to accomplish what I need. Essentially, we have a specialized DITA schema we are using. Some of our authors have no need to be as well versed in DITA as other authors, and we'd like to "hide" some of the schema options from them (for example, not giving them the option for inserting a <boolean> element inside of <p>).
I found the following post: http://www.oxygenxml.com/forum/topic6228.html which talked of a way of disabling certain menu items based on context. However, in messing with the code snippet provided, it doesn't quite get at what I'm trying to do (limit even the options in the context sensitive assistant window). Is there a configuration option where I can disallow some elements globally (without tweaking the schema - I don't want to have to maintain 2 schemas), or do I have to determine all possible contexts for a given element and declare each of them in a listener that would disallow them?
Any pointers would be helpful. Thanks!
-Anthony
I've been dabbling in the API and am wondering if there is a way to accomplish what I need. Essentially, we have a specialized DITA schema we are using. Some of our authors have no need to be as well versed in DITA as other authors, and we'd like to "hide" some of the schema options from them (for example, not giving them the option for inserting a <boolean> element inside of <p>).
I found the following post: http://www.oxygenxml.com/forum/topic6228.html which talked of a way of disabling certain menu items based on context. However, in messing with the code snippet provided, it doesn't quite get at what I'm trying to do (limit even the options in the context sensitive assistant window). Is there a configuration option where I can disallow some elements globally (without tweaking the schema - I don't want to have to maintain 2 schemas), or do I have to determine all possible contexts for a given element and declare each of them in a listener that would disallow them?
Any pointers would be helpful. Thanks!
-Anthony