Skip to main content

Module write

Module write 

Source
Expand description

文章编辑器页面模块(基于 Tiptap 富文本编辑器)。 文章编辑器页面。

提供新建文章与编辑文章两种模式,使用基于 Tiptap 的富文本编辑器。 编辑器通过 crate::tiptap_bridge 的 wasm-bindgen 绑定在 WASM 前端初始化, 并与 window.TiptapEditor 实例交互,实现 Markdown 内容回填、图片上传与组件卸载时的清理。

Re-exports§

pub use Write_completions::Component::Write;
pub use WriteEdit_completions::Component::WriteEdit;

Structs§

CoverUploaderProps 🔒
Properties for the CoverUploader component.
WriteEditProps
Properties for the WriteEdit component.

Functions§

CoverUploader 🔒
封面上传子组件。
Write
新建文章页面组件。
WriteEdit
编辑文章页面组件。
write_editor 🔒
文章编辑器核心组件,支持新建(post_id == None)与编辑模式。