-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve the issue of text editing not being effective before the…
… table (#5365) #### What type of PR is this? /kind bug /area editor /area console #### What this PR does / why we need it: 在 #5191 中对表格新增了如果可以左右滚动时,则显示阴影的特性。而根据 `prosemirror` 的数据流处理策略,在 `decorations` 中,state 是 new EditorState,但通过 `this.editor.view` 获取到的 view 为 old EditorView,进而导致使用了最新的坐标,并且使用其坐标通过旧版本的 view 中获取 DOM 而产生的错误。 本 PR 使用 `NodeView` 而不是 `decorations` 来重新处理表格阴影。 #### How to test it? 在默认富文本编辑器中新建一个表格。在表格前使用拼音输入文本,查看此文本能否被输入。 同时查看表格阴影是否存在 #### Which issue(s) this PR fixes: Fixes #5352 #### Does this PR introduce a user-facing change? ```release-note 解决默认富文本编辑器表格前字符无法被编辑的问题。 ```
- Loading branch information
Showing
1 changed file
with
34 additions
and
49 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