We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

command create link in new tab


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',


Live Chat Icon For mobile
Up arrow icon