nshenderov/strapi-plugin-ckeditor

"Open in a new tab" toggle does not update html source

inc00ming opened this issue · 1 comments

Describe the bug
When using Open in a new tab toggle does not update html source
To Reproduce
Steps to reproduce the behavior:

  1. Type a word and select all word and click Link button on the editor
  2. Disable "Open in a new tab"
  3. Check html source
  4. Source shows target="_blank"

Expected behavior
Source should have target="_self"

Screenshots
Screenshot from 2024-09-27 10-12-57

Screenshot from 2024-09-27 10-13-09

please complete the following information:

  • plugins.js (if exist)
  • package.json
    • "@_sh/strapi-plugin-ckeditor": "^2.1.0",
  • node version
    • Node 18

Additional context
Add any other context about the problem here.

@inc00ming
I see the issue. CKEditor doesn't add target="_self" by default either. I'll look into how it can be resolved. In the meantime, you can customize the link configuration in your config file to fit your needs.