feat: 富文本添加
This commit is contained in:
1 parent
aed501d308
commit
4959e402b7
6 files changed
+111
-4
No files matched your search
@@ -1 +1,15 @@
|
||||
/// <reference types="vite/client" />
|
||||
import { SlateDescendant, SlateElement, SlateText, Toolbar } from '@wangeditor/editor'
|
||||
|
||||
declare module '@wangeditor/editor' {
|
||||
// 扩展 Text
|
||||
interface SlateText {
|
||||
text: string
|
||||
}
|
||||
|
||||
// 扩展 Element
|
||||
interface SlateElement {
|
||||
type: string
|
||||
children: SlateDescendant[]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user