jodit / jodit-angular

Angular wrapper for Jodit && Hey. Due to the fact that I do not use Angular in my projects, I cannot fix plugin errors in a timely manner. If you want the plugin to develop, send PR or better become a contributor
MIT License
48 stars 35 forks source link

change default target for all links #120

Open Yang-Jing-Hui opened 1 year ago

Yang-Jing-Hui commented 1 year ago

I want to change default target for all links. I found the applyLink method, but it not work for me...

{ link: { openInNewTabCheckbox: false, }, events: { applyLink: (jodit, link) => { link.setAttribute("target", "_blank"); }, } }

"jodit-angular": "1.11.1"

Reference:https://github.com/xdan/jodit/issues/841