()
| 29 | * @returns |
| 30 | */ |
| 31 | export const useEditableStatic = (): Editable => { |
| 32 | const contenxt = React.useContext(EditableStoreContext) |
| 33 | |
| 34 | if (!contenxt) { |
| 35 | throw new Error( |
| 36 | `The \`useEditableStatic\` hook must be used inside the <EditableProvider> component's context.`, |
| 37 | ) |
| 38 | } |
| 39 | |
| 40 | return contenxt.editor |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * 实时变化的编辑器对象 |
no outgoing calls
no test coverage detected