npm update jodit-react Run demo npm install --dev npm run demo and open http://localhost:4000/ Usage 1. Require and use Jodit-react component inside your application. importReact,{useState,useRef,useMemo}from'react';importJoditEditorfrom'jodit-react';constExample=({placeholder})=>{consteditor...
我正在尝试使用 jodit-react,我使用了这篇文章中概述的相同配置 我的ReactJs 组件直观如下 <JoditEditor ref={editor} value={state.content} config={config} onChange={handleContentChange} /> 当我到达相关页面时,我看到此错误: Cannot read properties of undefined (reading 'document') 感谢您的帮助 我...
.jodit_theme_custom { --jd-color-background-default: #ffffff; --jd-color-border: #044406; --jd-color-panel: #9bffe1; --jd-color-icon: #044406; } 文档主题:https://xdsoft.net/jodit/examples/theme/dark.html 文档React 示例:https://xdsoft.net/jodit/examples/intergration/react-jodit....
npm update jodit-react Run demo npm install --dev npm run demo and open http://localhost:4000/ Usage 1. Require and use Jodit-react component inside your application. importReact,{useState,useRef,useMemo}from'react';importJoditEditorfrom'jodit-react';constExample=({placeholder})=>{consteditor...