Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在标题行使用 executeInsertElementList 插入换行符,新产生的行会继承标题的格式 #669

Closed
junestars opened this issue Jul 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@junestars
Copy link
Contributor

version

0.9.84

Link to minimal reproduction

https://hufe.club/canvas-editor/

Steps to reproduce

1、手动输入一行文本,并设置成一级标题
2、调用 executeInsertElementList([{value: '\n'}]) 换行

What is expected?

新产生的行应该移除标题格式,就像手动输入换行一样

What is actually happening?

新产生的行会保持标题格式,如下图
image

System Info

No response

Any additional comments?

No response

@Hufe921 Hufe921 added the enhancement New feature or request label Jul 1, 2024
@Hufe921 Hufe921 closed this as completed Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants