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

粘贴有可能不渲染本行内容 #591

Closed
zTree opened this issue Jul 17, 2020 · 0 comments
Closed

粘贴有可能不渲染本行内容 #591

zTree opened this issue Jul 17, 2020 · 0 comments
Assignees
Milestone

Comments

@zTree
Copy link
Contributor

zTree commented Jul 17, 2020

编辑模式

  • wysiwyg 所见即所得模式
  • ir 即时渲染模式

描述问题

如果粘贴的内容和之前输入的内容合起来是一个 markdown 语法时,会导致粘贴后,不对该 markdown 语法进行渲染。

例子:

// 这是一个超链接的 markdown 语法
[github](http://github.com);

// 1. 如果手动输入前一半
[github
// 2. 然后利用粘贴输入后一半
](http://github.com);
// 如果此行不再进行修改的话,这个超链接 就不会被渲染

期待的结果

分析源码,感觉应该是 selection.ts 文件中的 insertHTML 方法内,直接使用 range.insertNode 方法 导致这个问题的产生。

@Vanessa219 Vanessa219 self-assigned this Jul 17, 2020
@Vanessa219 Vanessa219 added this to the 3.3 milestone Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants