editor 处于编辑状态的时候,调用ctx.setContents 光标会回到开始发布于 7 年前作者 jiexiong7502 次浏览最后编辑 7 年前来自 ask需要在editor输入的时候进行一定操作,然后在editorinpupt 事件里面 设置setcontents,光标会回到最开始