@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.
@@ -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 { from, to } = selection;
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, {