Within a skin, I'd like to create a custom email button on my toolbar that would allow a user to email a direct link to a specific file in my RoboHelp project (a Share this Topic feature).
I thought it might be something like this:
window.location=('mailto:ENTERNAME@DOMAIN.COM?Subject=Useful Step-by-Step&body=This Step-by-Step may be helpful for you: ' + window.location)
but that just calls the toolbar, not the topic.
I have the following code that I could imbed on each topic page, but for consistency, I'd like to have this functionality on the toolbar if possible:
var mailSubject = 'Useful Information';
var mailBody = 'This page might help: ' + location.href;
var mailDisplay = 'Click here for a demo.';
+ '?subject=' + escape(mailSubject)
+ '&body=' + escape(mailBody)
+ '">' + mailDisplay + '</a>'