我有:
const delta = quill.formatText(documentData?.prediction?.range?.index, documentData?.prediction?.range?.length, { accepted: 'accepted' })
delta.insert('\t')
quill.updateContents(delta)
它创建了一个delta看起来像:
ops: [
{retain: 1617},
{retain: 63, attributes: {…}},
{insert: " "}
]
但是当我的编辑没有在最后添加那个空间时。如果我将其更改为某些文本(如hello),则它会插入hello.
但不带空格。为什么不?
哆啦的时光机
ITMISS
随时随地看视频慕课网APP
相关分类