forked from Vanessa219/vditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 修复所见即所得模式下,代码语言选择在firefox不工作 (Vanessa219#1105)
在firefox中使用所见即所得模式,编辑```插入代码,选择语言回车无效 控制台报错`i.startContainer.firstElementChild is null` 原因是range.startContainer在firefox和chrome表现不一致 在chrome中startContrainer是input的父元素,在firefox中是input本身
- Loading branch information
Showing
1 changed file
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters