Closed daniicamanalang closed 1 year ago
Ref: INT-3053
Hi @daniicamanalang,
Looking at the example provided you are using TinyMCE 6 which renamed that option to link_default_target
as per the Migration Guide. So if you update it to use link_default_target: "_blank"
then it should work, or at least does in my testing.
The other option is to swap back to using TinyMCE 5 by using the cloudChannel property such as cloudChannel="5"
. One thing to note though if you do that though is that TinyMCE 5 support ends in April 2023.
There was no discussion here for a while. Considering this issue solved and closing it.
What is the current behavior? I have added this configuration
default_link_target: '_blank'
for tinymce and it is supposed to open links to a new tab but it is not working on any browser and devices. No target="_blank" is added on source code.Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar. Please see this link
What is the expected behavior? It displays
<a href="href" target="_blank" />
to the source code so that users can open the link in new tab instead of getting redirectedWhich versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or
tinymce-react
? All browsers and devices. Version is:"@tinymce/tinymce-react": "^4.2.0",
. This actually works on the latest published version of tinymce but not on react wrapper.