command create link in new tab

Hi,

Is there a parameter to pass to  rteObj.executeCommand('createLink',{ text: 'Links', url: 'http://', title : 'Link' });

for the link to open in a new tab?

Thanks for your time ;)


1 Reply

VJ Vinitha Jeyakumar Syncfusion Team January 16, 2023 07:16 AM UTC

Hi thomas,


Your requirement can be achieved by adding target attribute with the executeCommand like below,

Code snippet:
rteObj.executeCommand('createLink', {
      text: 'Links',
      url: 'https://ej2.syncfusion.com/demos/#/material/rich-text-editor/tools.html',
      title: 'Link',
      target: '_blank',
    });


Regards,
Vinitha

Loader.
Up arrow icon