HTML code disappeared in <a> tag

Created on 22 July 2025, 4 days ago

Problem/Motivation

Hi,
I have:

  • Drupal 10.5.1
  • Linkit 7.0.7
  • CKEditor5 Open New Tab 1.0.1

When I create a link to a Media with CKEditor (e.g. a PDF file) and open the source, the code is
<a href="/media/558" data-entity-type="media" data-entity-uuid="7d1be872-1028-4890-8909-636a2bd227ed" data-entity-substitution="media">my pdf</a>
but if I add the target="_blank" by the module, the code becomes:
<a href="/media/558" target="_blank">my pdf</a>

What can I do in order to preserve all the html code?

Thanks.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇨🇭Switzerland steva1982

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024