1
下面是與屬性增量:獲取光標處(不選擇),δ,不要把它
試圖與
editor.getContents(range.index, range.length);
回報,以獲得增量
Delta: {
ops: []
}
預計 - range.length爲0.
是否有返回整個增量(從左至右),所以它看起來像這樣的一種方法:
Delta: {
ops: [
{
attributes: { test: '123' },
insert: 'A selection'
},
...
]
}
非常感謝您的幫助! :-) –