@one2x/medeo-rte 0.4.8 → 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 +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/editor.d.ts +6 -0
- package/dist/types/editor.d.ts.map +1 -1
- package/package.json +1 -1
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
|
|
package/dist/index.js
CHANGED
|
@@ -6790,7 +6790,7 @@ class rl {
|
|
|
6790
6790
|
writeClipboard(t) {
|
|
6791
6791
|
if (!t) return;
|
|
6792
6792
|
const e = this.targetDoc(), n = G(this.targetSel()), i = X(this.targetSel()), r = e.takeSlice(n, i);
|
|
6793
|
-
t.setData(li, Ia(r)), t.setData("text/plain", e.plainText(n, i)), t.setData("text/html", Ja(r));
|
|
6793
|
+
this.chrome.copyContentOnly && delete r.virtualBlocks, t.setData(li, Ia(r)), t.setData("text/plain", e.plainText(n, i)), t.setData("text/html", Ja(r));
|
|
6794
6794
|
}
|
|
6795
6795
|
isFocused() {
|
|
6796
6796
|
return this.root.contains(document.activeElement);
|