@one2x/medeo-rte 0.4.7 → 0.4.9

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
@@ -135,6 +135,7 @@ new Editor(el, { plugins: [...builtinEmbedPlugins, formulaPlugin] });
135
135
  | `placeholderColor` | | 空文档占位颜色 |
136
136
  | `placeholderOpacity` | | 空文档占位透明度,0–1 |
137
137
  | `surfaceBackground` | `'paper'` | `'paper'` 纸张白;`'transparent'` 透出宿主背景 |
138
+ | `copyContentOnly` | `false` | 复制/剪切是否只带内容。`false`:mark(底色、边框、占位)随私有格式一起复制并在粘回时还原;`true`:只带文字、样式和 slot/图片/引用,不带 mark。纯文本、HTML 剪贴板不受影响 |
138
139
 
139
140
  光标高度、选区高度不在这张表里,用 `--mini-caret-height`、`--mini-sel-height`。
140
141
 
@@ -202,7 +203,7 @@ const id = editor.insertVirtualBlock({
202
203
  });
203
204
  ```
204
205
 
205
- 生成中用 `setMarkStatus`,不进文档和撤销。`label` 盖住正文;`locked: true` 时块内和内侧边界不能改,点击也不发 `markclick`。结束后先清状态,再用 `replaceMarkText` 写回,这一步单独占一次撤销。
206
+ 生成中用 `setMarkStatus`,不进文档和撤销。有 `label` 就是锁定:有字的 mark 整块换成 `label`,里面的字、芯片、内层 mark 都不显示,宽度按 `label` 算,光标进不去,不能改,点击也不发 `markclick`;`locked` 已忽略。结束后先清状态,再用 `replaceMarkText` 写回,这一步单独占一次撤销。
206
207
 
207
208
  ```ts
208
209
  editor.setMarkStatus(id, { label: 'Generating…', locked: true, text: 'rainbow', border: 'pulse' });