提问人:BingeCode 提问时间:9/13/2023 更新时间:9/13/2023 访问量:63
插入后如何阻止 tiptap 链接传播?
How to stop tiptap Link from propagating after insertion?
答:
0赞
BingeCode
9/13/2023
#1
修复非常简单。 在代码中设置编辑器时,可以扩展链接标记,如下所示:
this.editor = new Editor({
element: this.editorRef,
extensions: [
//...
Link.extend({
inclusive: false,
})
//...
]
});
inclusive: false
确保链接不包含光标的最终位置。
评论