@tiptap/core 2.1.0-rc.4 → 2.1.0-rc.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
@@ -3493,6 +3493,7 @@ class Editor extends EventEmitter {
3493
3493
  });
3494
3494
  this.view.updateState(newState);
3495
3495
  this.createNodeViews();
3496
+ this.prependClass();
3496
3497
  // Let’s store the editor instance in the DOM element.
3497
3498
  // So we’ll have access to it for tests.
3498
3499
  const dom = this.view.dom;
@@ -3506,6 +3507,12 @@ class Editor extends EventEmitter {
3506
3507
  nodeViews: this.extensionManager.nodeViews,
3507
3508
  });
3508
3509
  }
3510
+ /**
3511
+ * Prepend class name to element.
3512
+ */
3513
+ prependClass() {
3514
+ this.view.dom.className = `tiptap ${this.view.dom.className}`;
3515
+ }
3509
3516
  captureTransaction(fn) {
3510
3517
  this.isCapturingTransaction = true;
3511
3518
  fn();