豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Discrepancy in hoisting text attributes to elements (to selection attributes) #18430

@Reinmar

Description

@Reinmar

📝 Provide a description of the improvement

Screen.Recording.2025-04-25.at.08.37.02.mov

Typing over:

<p><b>foo</b></p>
<p>[]</p>
<p><b>foo</b></p>

will behave differently depending on how this content was generated.

If it was generated by applying bold to the first paragraph and then using Enter key to create two more, the second one, even when empty, will preserve this attribute in a form of selection:bold on paragraph.

However, if bold is applied to 3 paragraphs <p>foo</p><p></p><p>foo</p> then the second one won't be styled.

📃 Other details

  • Browser: …
  • OS: …
  • CKEditor version: …
  • Installed CKEditor plugins: …

If you'd like to see this improvement implemented, add a 👍 reaction to this post.

Metadata

Metadata

Assignees

Labels

domain:typing/imeThis issue reports a problem with standard typing & IME (typing method for CJK languages).package:basic-stylespackage:fontpackage:typingsquad:coreIssue to be handled by the Core team.type:improvementThis issue reports a possible enhancement of an existing feature.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions