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

在vue3环境使用评论的还原标记mark-range,wrap 失效并没有加载到编辑器里 #353

Open
zp941128 opened this issue Nov 10, 2023 · 3 comments

Comments

@zp941128
Copy link

环境: vue3+ts、@aomao/plugin-mark-range 版本:"^2.10.3"。
代码: engine.command.executeMethod(
"mark-range",
"action",
"comment",
"wrap",
[
{
id: ["111122223333"],
path: [
[3, 0, 0],
[3, 0, 10],
],
},
],
)
方法使用时候:在编辑器初始化完成后调用还原标记方法实际并没有还原进去。且当前path坐标是有内容的 [3, 0, 0],[3, 0, 10]。

@zp941128
Copy link
Author

怎么尝试都是回填不上去标记

@big-camel
Copy link
Member

只能建议 debug 排查到具体问题吧

@zp941128
Copy link
Author

好了好了 最基本的问题我没有更新编辑器。 engine.setHtml(html);
engine.history.clear();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants