You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Open in new tab" toggle is now displayed as expected. However, when I enable the toggle and save the link, the setting is not preserved. Upon inspecting the saved link, the "Open in new tab" toggle is visible but remains turned off, as if the change wasn’t saved.
Hi, thanks for getting in touch! It sounds like your HTML Purifier config needs some adjusting. Check which config file is used by the CKEditor field you're seeing this behaviour in (Settings > Fields > your field > Advanced).
To allow target="_blank", you need:
"Attr.AllowedFrameTargets": [
"_blank"
],
To allow the rel attribute with the values you specified in your CKEditor Config, you need:
"Attr.AllowedRel": [
"noopener",
"noreferrer"
],
I hope this helps!
I'll close this now, but feel free to reply if you run into any further issues.
Description
I’ve updated my plugin configuration to enable links to open in new tabs by adding the following setting:
The "Open in new tab" toggle is now displayed as expected. However, when I enable the toggle and save the link, the setting is not preserved. Upon inspecting the saved link, the "Open in new tab" toggle is visible but remains turned off, as if the change wasn’t saved.
Could someone help me troubleshoot this issue?
Additional info
"craftcms/ckeditor": "4.2.0",
"craftcms/cms": "5.4.3",
"craftpulse/craft-colour-swatches": "5.0.2",
"nystudio107/craft-seomatic": "5.1.3",
"spicyweb/craft-embedded-assets": "5.1.2",
"spicyweb/craft-neo": "5.2.5",
"verbb/hyper": "2.0.5",
"verbb/navigation": "3.0.4",
"vlucas/phpdotenv": "^5.4.0"
The text was updated successfully, but these errors were encountered: