General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › "On Insert"-Scripts do not work with selected content
-
spyro June 9, 2009 at 5:50 pm
"On Insert"-Scripts do not work with selected content
June 9, 2009 at 5:50 pmParticipants 1Replies 2Last Activity 13 years, 9 months agoHello again,
For some elements I am calling VBScripts before inserting them into the document. I am using the “on Inser”-Property inside the CTM-configuration for that. Unfortunaly the “On Insert”-events fires only when no content is selected in the document (surround seems not to be supported).
My goal is to add the selected text as default value for an attribute of this element. As a workarround I simply added a extra button to get this to work. Is there any way to accomplish this another way?
Rupert Jung
Derek Read June 9, 2009 at 6:13 pm
Reply to: "On Insert"-Scripts do not work with selected content
June 9, 2009 at 6:13 pmPlease see this topic. I believe it addresses your question:
-
AuthorPosts
- You must be logged in to reply to this topic.