feat(editor): replace slot with rxjs subject (#10768)

This commit is contained in:
Mirone authored and GitHub committed 2025-03-12 11:29:24 +09:00
1 parent 19f978d9aa
commit cd63e0ed8b
302 files changed
+1405 -1251

No files matched your search

@@ -128,7 +128,7 @@ export class TestRichText extends ShadowlessElement {
this.style.outline = 'none';
this.inlineEditor.mount(this._container, this);
this.inlineEditor.slots.textChange.on(() => {
this.inlineEditor.slots.textChange.subscribe(() => {
const el = this.querySelector('.y-text');
if (el) {
const text = this.inlineEditor.yText.toDelta();