-
|
Hello people, I want to add to my Editor the functionality that all links will open in another tab. Is it possible somehow to add by default I searched at documentation but I didn't find anything about it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Yes, it's possible. You just have to add the attribute when the link node is created. Check how the playground has implemented the autolink plugin, for example. |
Beta Was this translation helpful? Give feedback.
-
|
Finally I found it, and it is what I want! |
Beta Was this translation helpful? Give feedback.
Finally I found it, and it is what I want!
I leave it here for anyone else with the same worry.
I replaced
editor.dispatchCommand(TOGGLE_LINK_COMMAND, linkUrl);witheditor.dispatchCommand(TOGGLE_LINK_COMMAND, { url: linkUrl, target: '_blank' });at the point which I set the link to editor!