This content has been marked as final.
Show 2 replies
-
1. Re: Apply an existing XML Tag To Current Object JS (JavaScript)
R-Bala-Krishnan Feb 4, 2013 2:11 AM (in response to AaronKuehn)pass XML tag name instead XMLElement
mySelection.associatedXMLElements[0].xmlElements.add("italic", mySelection);// consider italic tag exist in current active document.
-
2. Re: Apply an existing XML Tag To Current Object JS (JavaScript)
AaronKuehn Feb 4, 2013 8:04 AM (in response to R-Bala-Krishnan)That didn't quite work for me...but it put me in the right direction. I think I have it working with this snippet:
myDocument.xmlElements[0].xmlElements.add(tagName, mySelection);
Thanks much for your help!
--Aaron

