Open sohee-lee7 opened 5 years ago
Has this been implemented yet? I'm using the code below and all my href are still opening in the current window.
var editor = new $window.tui.Editor.factory({
el: document.querySelector('#editSection'),
height: '100%',
viewer: true,
initialValue: content,
linkAttribute: {
target: '_blank',
contenteditable: 'false',
rel: 'noopener noreferrer'
},
exts: ['table']
});
I can confirm it's been working on the newest release 2.5.1
inkAttribute: {
target: '_blank',
contenteditable: 'false',
rel: 'noopener noreferrer'
},
this sets _blank
for target for all links in the viewer - need to make it dynamic i.e. so that editor can choose whether to open up a link in a new tab/window or same window/tab
Currently we can do this using customHTMLRenderer
linkAttribute option doesn't work in the Viewer in my case, using 3.0.
LinkAttribute still doesn't work in the viewer and in the preview window, version 3.2.3.
Version
v1.4.0
Test Environment
Chrome
Current Behavior
linkAttribute
does not work in Viewer.Expected Behavior
Viewer need
linkAttribute
.