pub(super) fn use_write_editor( post_id: Option<i32>, initial: PostDraft, published_at: Option<DateTime<Utc>>, ) -> WriteEditorState
编辑器的 Tiptap 回调与句柄只活在写作页的所有者里:页面卸载时 editor 随之释放, 触发 JS 端 destroy。
editor