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

fix: 修复所见即所得模式下,代码语言选择在firefox不工作 #1105

Merged
merged 1 commit into from
Nov 1, 2021
Merged

Conversation

myml
Copy link
Contributor

@myml myml commented Oct 28, 2021

在firefox中使用所见即所得模式,编辑```插入代码,选择语言回车无效
控制台报错i.startContainer.firstElementChild is null
原因是range.startContainer在firefox和chrome表现不一致
在chrome中startContrainer是input的父元素,在firefox中是input本身

在firefox中使用所见即所得模式,编辑```插入代码,选择语言回车无效
控制台报错`i.startContainer.firstElementChild is null`
原因是range.startContainer在firefox和chrome表现不一致
在chrome中startContrainer是input的父元素,在firefox中是input本身
@Vanessa219 Vanessa219 merged commit 3658e0e into Vanessa219:dev Nov 1, 2021
@Vanessa219 Vanessa219 self-requested a review November 1, 2021 02:40
@Vanessa219 Vanessa219 added this to the 3.8 milestone Nov 1, 2021
izgzhen pushed a commit to chafan-dev/vditor that referenced this pull request Dec 11, 2021
在firefox中使用所见即所得模式,编辑```插入代码,选择语言回车无效
控制台报错`i.startContainer.firstElementChild is null`
原因是range.startContainer在firefox和chrome表现不一致
在chrome中startContrainer是input的父元素,在firefox中是input本身
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants