Pages: 1
Print
Author Topic: "On Insert"-Scripts do not work with selected content  (Read 1767 times)
spyro
Member

Posts: 35


« on: June 09, 2009, 11:50:20 AM »

Hello 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
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1548



WWW
« Reply #1 on: June 09, 2009, 12:13:42 PM »

Please see this topic. I believe it addresses your question:

http://forums.xmetal.com/index.php?topic=22.0
Logged
spyro
Member

Posts: 35


« Reply #2 on: June 15, 2009, 09:49:57 AM »

Thank you! Is there anything you don't know...? ;)

Rupert Jung
Logged
Pages: 1
Print
Jump to: