Skip to main content
1-Visitor
May 6, 2013
Question

Script to quickly exit Editor

  • May 6, 2013
  • 1 reply
  • 1976 views

Please read the whole thread carefully before trying to apply the script supported.

Recently one of my colleagues found a way to exit Editor in a very quick way. I made myself a little script out of it.

function exitEditor(){

var p = Application.getActiveDocument().getElementsByTagName("p").item(0);

var newnode = Application.getActiveDocument().createTextNode("50 ...Hz ±2");

p.appendChild(newnode);

}

where "p" in getElementsByTagName can be replaced with any tag where #PCDATA is allowed.

Please note that the script is meant to be a joke, worthy a try though.

Kind regards

1 reply

1-Visitor
May 7, 2013

For further information see CS103713 at ptc.com´s technicalSupport. This crash seems to be solved in further releases.