- AuthorPosts
- August 19, 2020 at 5:20 am #26961LTTParticipant
Customize: Active String:
Type: URLs
Event: Hovered
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 #26983Yutaka EmuraKeymasterThis issue was fixed on v20.1 beta 7 (20.0.907).
October 9, 2020 at 12:21 pm #27084LTTParticipantSettings 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 #27087Yutaka EmuraKeymasterThat’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 #27092LTTParticipantIf 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 #27102Yutaka EmuraKeymasterI 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 #27103Yutaka EmuraKeymasterAs 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 #27106LTTParticipantI mean the unresolved issues I collected in the thread below (and you said you would consider the solution in the future):
emeditor.com/forums/topic/active-string/#post-23156e.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. - AuthorPosts
- You must be logged in to reply to this topic.