onChangeSelection: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page onChangeSelection to OnChangeSelection without leaving a redirect: Converting page title to first-letter uppercase) |
m (Conversion script moved page OnChangeSelection to onChangeSelection: Converting page titles to lowercase) |
(No difference)
|
Revision as of 23:30, 9 February 2023
This event is triggered whenever the user selects a token.
As a frame-based event, a frame containing the event code has to be opened.
Set up
Create a frame that has this special html tag in it:
<link rel='onChangeSelection' type='macro' href='macroLink'>
Replace macroLink
by an actual macroLinkText-call to a macro of your choice (the returned value of macroLinkText()). A common practice is to call the frame opening macro itself to actualize the content.