Janex Posted August 13, 2014 Posted August 13, 2014 Hi all. When I add link in TUniDBHTMLMemo via embeded toolbar, link is added without "target='new'" and when i click on link, it is opened in the same browser window/tab And back button not work in unigui. Question - is there some easy way to add "target='new'" without programmatic change HTML ? WBR Janex Quote
Sherzod Posted August 13, 2014 Posted August 13, 2014 Hi Janex.If I understand correctly, try: UniDBHTMLMemo1 -> ClientEvents -> ExtEvents -> add afterrender function: function afterrender(sender, eOpts) { sender.toolbar.getComponent('createlink').handler = function() { var url = prompt(this.createLinkText, this.defaultLinkValue); if (url && url != 'http:/' + '/') { this.relayCmd('insertHTML', "<a href='" + url + "' target='_blank'>" + this.getDoc().getSelection() + "</a>"); } } } This code simply adds a "target".I do not know, but by using the links UniDBHTMLMemo1, of clicking behavior before and after changing the code does not work for me. Try... Best regards. 1 Quote
Janex Posted August 13, 2014 Author Posted August 13, 2014 Super !!!!! It works !!! Thank you very much. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.