1 Reply Latest reply on Jun 23, 2017 5:46 AM by Chinnadk

    preserve XML structure

    sreekeyan

      Hi All

       

      I need to preserve the XML structure in indesign file.

       

      is this possible to hide the untag options from main menus and right click menu

       

      How to do this. other wise how to keep the XML structure from the application file. Please advice.

       

       

      Have great weekend !!!!!!!!!!!

        • 1. Re: preserve XML structure
          Chinnadk Level 4

          Try this,

           

          #targetengine "session";
          app.menuActions.itemByName("$ID/Untag Text").eventListeners.add("beforeInvoke", disable);
          
          
          function disable(stopAction)
          {
                  alert("Untag Text Menu disabled!");
                  stopAction.stopPropagation();
                  stopAction.preventDefault();
              }
          
          
          
          

           

          Regards,

          Chinna