ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.
https://ckeditor.com/ckeditor-4
Other
5.8k stars 2.48k forks source link

"target" attribute value is applied even if the link type doesn't allow to specify it #4478

Open WangJincheng4869 opened 3 years ago

WangJincheng4869 commented 3 years ago

当使用超链接时会出现以下bug

  1. 选择地址模式 image

  2. 并将目标设置成_blank image

  3. 再插入锚点 image

  4. 锚点也会带有_blank image

其实网页锚点不应该带有_blank。

程序版本:v4.15.1 浏览器版本: image 操作系统版本: image

Dumluregn commented 3 years ago

Hello, we are unable to understand the issue in the language you used. Please, use only English when creating the issue. Feel free to create a new one with that in mind.

WangJincheng4869 commented 3 years ago

Hello, we are unable to understand the issue in the language you used. Please, use only English when creating the issue. Feel free to create a new one with that in mind.

After using the hyperlink to modify the target, it will cause the target to be used when the web page anchor is used later

1.Select address mode

2.And set the target to _blank

  1. Insert anchor point
  2. The anchor will also have _blank

In fact, web anchors should not have _blank.

Program version: v4.15.1

Browser version:

Operating system version:

WangJincheng4869 commented 3 years ago

Hello, we are unable to understand the issue in the language you used. Please, use only English when creating the issue. Feel free to create a new one with that in mind.

I take the liberty to ask, since there is a Chinese version, why don't you understand Chinese?

Dumluregn commented 3 years ago

I take the liberty to ask, since there is a Chinese version, why don't you understand Chinese?

CKEditor uses community translations. It’s Open Source Software, so translators are contributors to OSS too.

As for the issue - I confirm that if you start creating a link, choose a target, then switch link type to lead to an anchor, the target attribute is applied while it should be ignored.