mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
feat(editor): replace slot with rxjs subject (#10768)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user