How does wangEditor cancel the auto-focusing of rich text?

vue project, rich text is only an item in the form, so there is no need to automatically focus on rich text. If you set it to focus on the first item of the form, there is a problem that the echo of rich text will "grab" the focus back

.
Nov.30,2021

wangEditor does not need to automatically focus on rich text.
currently does not support this configuration. Delete this line manually https://github.com/wangfupeng.

.

that is, this.selection.restoreSelection (); this line

Did you solve the problem of canceling autofocus in

vue? How to solve


just find this file in node_module and comment out those two lines of code. You're welcome!

Menu