Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1199243

    i just discovered that i can’t add this kind of link in a text block…

    <a href="#" onclick="mailhidepopup=window.open('https://mailhide.io/e/xxxxx?compact=true','mailhidepopup','width=580,height=635'); return false;" title="Reveal this e-mail address">here</a>
    

    …if i add a text block, then click on the “text” tab instead of the “visual” tab, i can usually add html code. but when i add this little bit of javascript, & leave the text area, it’s all deleted.
    is there a way to do such a thing when adding a block of text besides using the code block?
    thanks.

    #1199581

    upon further research, it seems that this is a pretty widespread issue, & perhaps even intentional.
    i found a workaround @ https://kriesi.at/support/topic/onclick-event-on-html-link-dissapears-on-save/
    to basically use this as the link in the text block…

    
    <a href="#" id="mailHidePop">on click link</a>

    …and add a code block at the bottom of the page with this…

    <script>
    	(function($){
    		$(window).load(function() {
    			$("#mailHidePop").on('click', function() {
    				popup = window.open('https://mailhide.io/e/xxxxxxx?compact=true','mailhidepopup','width=580,height=635');
    				popup.focus();
    				return false;
    			})
    		});
    	})(jQuery);
    </script>

    …and that seems to be working fine.

    #1199759

    Hi,

    Great, I’m glad that you found a solution and thanks for sharing. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.