@tiptap/core 2.1.0-rc.3 → 2.1.0-rc.5

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.umd.js CHANGED
@@ -3491,6 +3491,7 @@ img.ProseMirror-separator {
3491
3491
  });
3492
3492
  this.view.updateState(newState);
3493
3493
  this.createNodeViews();
3494
+ this.prependClass();
3494
3495
  // Let’s store the editor instance in the DOM element.
3495
3496
  // So we’ll have access to it for tests.
3496
3497
  const dom = this.view.dom;
@@ -3504,6 +3505,12 @@ img.ProseMirror-separator {
3504
3505
  nodeViews: this.extensionManager.nodeViews,
3505
3506
  });
3506
3507
  }
3508
+ /**
3509
+ * Prepend class name to element.
3510
+ */
3511
+ prependClass() {
3512
+ this.view.dom.className = `tiptap ${this.view.dom.className}`;
3513
+ }
3507
3514
  captureTransaction(fn) {
3508
3515
  this.isCapturingTransaction = true;
3509
3516
  fn();