@tiptap/core 2.0.0-beta.148 → 2.0.0-beta.149
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/dist/tiptap-core.cjs.js +3 -1
- package/dist/tiptap-core.cjs.js.map +1 -1
- package/dist/tiptap-core.esm.js +3 -1
- package/dist/tiptap-core.esm.js.map +1 -1
- package/dist/tiptap-core.umd.js +3 -1
- package/dist/tiptap-core.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/extensions/clipboardTextSerializer.ts +3 -1
package/dist/tiptap-core.cjs.js
CHANGED
|
@@ -193,7 +193,9 @@ const ClipboardTextSerializer = Extension.create({
|
|
|
193
193
|
const { editor } = this;
|
|
194
194
|
const { state, schema } = editor;
|
|
195
195
|
const { doc, selection } = state;
|
|
196
|
-
const {
|
|
196
|
+
const { ranges } = selection;
|
|
197
|
+
const from = Math.min(...ranges.map(range => range.$from.pos));
|
|
198
|
+
const to = Math.max(...ranges.map(range => range.$to.pos));
|
|
197
199
|
const textSerializers = getTextSeralizersFromSchema(schema);
|
|
198
200
|
const range = { from, to };
|
|
199
201
|
return getTextBetween(doc, range, {
|