@tiptap/core 2.11.6 → 2.11.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/dist/index.js CHANGED
@@ -4540,7 +4540,7 @@ class Editor extends EventEmitter {
4540
4540
  // @ts-ignore
4541
4541
  const name = typeof nameOrPluginKey === 'string' ? `${nameOrPluginKey}$` : nameOrPluginKey.key;
4542
4542
  // @ts-ignore
4543
- plugins = prevPlugins.filter(plugin => !plugin.key.startsWith(name));
4543
+ plugins = plugins.filter(plugin => !plugin.key.startsWith(name));
4544
4544
  });
4545
4545
  if (prevPlugins.length === plugins.length) {
4546
4546
  // No plugin was removed, so we don’t need to update the state
@@ -5142,7 +5142,8 @@ class NodeView {
5142
5142
  x = handleBox.x - domBox.x + offsetX;
5143
5143
  y = handleBox.y - domBox.y + offsetY;
5144
5144
  }
5145
- (_g = event.dataTransfer) === null || _g === void 0 ? void 0 : _g.setDragImage(this.dom, x, y);
5145
+ const clonedNode = this.dom.cloneNode(true);
5146
+ (_g = event.dataTransfer) === null || _g === void 0 ? void 0 : _g.setDragImage(clonedNode, x, y);
5146
5147
  const pos = this.getPos();
5147
5148
  if (typeof pos !== 'number') {
5148
5149
  return;