@tiptap/core 2.1.0-rc.4 → 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.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +7 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/packages/core/src/Editor.d.ts +4 -0
- package/package.json +2 -2
- package/src/Editor.ts +8 -0
package/dist/index.cjs
CHANGED
|
@@ -3497,6 +3497,7 @@ class Editor extends EventEmitter {
|
|
|
3497
3497
|
});
|
|
3498
3498
|
this.view.updateState(newState);
|
|
3499
3499
|
this.createNodeViews();
|
|
3500
|
+
this.prependClass();
|
|
3500
3501
|
// Let’s store the editor instance in the DOM element.
|
|
3501
3502
|
// So we’ll have access to it for tests.
|
|
3502
3503
|
const dom = this.view.dom;
|
|
@@ -3510,6 +3511,12 @@ class Editor extends EventEmitter {
|
|
|
3510
3511
|
nodeViews: this.extensionManager.nodeViews,
|
|
3511
3512
|
});
|
|
3512
3513
|
}
|
|
3514
|
+
/**
|
|
3515
|
+
* Prepend class name to element.
|
|
3516
|
+
*/
|
|
3517
|
+
prependClass() {
|
|
3518
|
+
this.view.dom.className = `tiptap ${this.view.dom.className}`;
|
|
3519
|
+
}
|
|
3513
3520
|
captureTransaction(fn) {
|
|
3514
3521
|
this.isCapturingTransaction = true;
|
|
3515
3522
|
fn();
|