@one2x/medeo-rte 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -202,7 +202,7 @@ const id = editor.insertVirtualBlock({
202
202
  });
203
203
  ```
204
204
 
205
- 生成中用 `setMarkStatus`,不进文档和撤销。`label` 盖住正文;`locked: true` 时块内和内侧边界不能改,点击也不发 `markclick`。结束后先清状态,再用 `replaceMarkText` 写回,这一步单独占一次撤销。
205
+ 生成中用 `setMarkStatus`,不进文档和撤销。有 `label` 就是锁定:有字的 mark 整块换成 `label`,里面的字、芯片、内层 mark 都不显示,宽度按 `label` 算,光标进不去,不能改,点击也不发 `markclick`;`locked` 已忽略。结束后先清状态,再用 `replaceMarkText` 写回,这一步单独占一次撤销。
206
206
 
207
207
  ```ts
208
208
  editor.setMarkStatus(id, { label: 'Generating…', locked: true, text: 'rainbow', border: 'pulse' });