- August 19, 2020 at 5:20 am #26961
Customize: Active String:
Action: Run macro:
ShowTip('<a href="' + document.ActiveString + '">^</a>', eeShowTipActiveString);
Now hover over a URL in EmEditor.
Clicking the tooltip should open the URL.
** But it opens EmEditor’s folder instead.August 26, 2020 at 6:45 pm #26983
This issue was fixed on v20.1 beta 7 (20.0.907).October 9, 2020 at 12:21 pm #27084
Settings is as above.
If the URL contains a percent-encoded string, e.g. %22, the tooltip will flicker when mouse cursor hovers over %22.October 9, 2020 at 2:00 pm #27087
That’s because both your macro and “%22” want to show tooltips. Which tooltip do you want to see?October 11, 2020 at 5:52 am #27092
If ActiveString_1 contains ActiveString_2, the hovered inner one (i.e. 2) should take precedence.
And hope other issues can be resolved when feasible:
emeditor.com/forums/topic/active-stringOctober 12, 2020 at 9:59 am #27102
I will look into the tooltip issue when active strings are nested.
Which other issues are you referring to? Please write a new question as a new separate thread, and reiterate the issues with screenshots if possible. For me, one question per thread would be even better for me so I can understand well. Thank you.October 12, 2020 at 10:26 am #27103
As for the tooltip issue, please consider writing your macro as:
if( document.ActiveString.substr(0,4) == "http" || document.ActiveString.substr(0,3) == "www" ) ShowTip('<a href="' + document.ActiveString + '">^</a>', eeShowTipActiveString);
This way, the tooltip will appear only when the active string begins with “http” or “www”, thus the macro tooltip will not appear when hovering on the inner string
%22.October 13, 2020 at 12:12 pm #27106
I mean the unresolved issues I collected in the thread below (and you said you would consider the solution in the future):
e.g. Click to select a nested Active String.
Thank you for the macro solution.
I’ll try to workaround these issues via macros first.
If not resolved, I’ll post them one per thread clearly.
- You must be logged in to reply to this topic.