我有: const delta = quill.formatText(documentData?.prediction?.range?.index, documentData?.prediction?.range?.length, { accepted: 'accepted' }) delta.insert('\t') quill.updateContents(delta)它創(chuàng)建了一個delta看起來像:ops: [ {retain: 1617}, {retain: 63, attributes: {…}}, {insert: " "}]但是當(dāng)我的編輯沒有在最后添加那個空間時。如果我將其更改為某些文本(如hello),則它會插入hello.但不帶空格。為什么不?
為什么我的 QuillJS Delta 不插入空格?
哆啦的時光機(jī)
2022-12-22 14:33:33