Altova Authentic 2024 Browser Edition


Home Prev Top Next

See also


Declaration: CurrentSelection as AuthenticSelection



The property provides access to the current selection in the Authentic View.


The example code below retrieves the complete text of the current selection:




 // somewhere in your script:



 // GetSelection() collects complete text selection

 function GetSelection(objSel)


         var strText = "";


         var objCurrent = objSel.Start;




                 objCurrent = objPlugIn.GetNextVisible(objCurrent);

                 strText += objCurrent.TextValue;



         strText += objSel.End.TextValue.substring(0,objSel.EndTextPosition);

         return objSel.Start.TextValue.substr(objSel.StartTextPosition) + strText;



© 2018-2024 Altova GmbH