Tinymce-react JS未显示UI和插入简单的TextArea
我安装了Tinymce-rexct,但是我看不到图像中可以看到的简单textarea的UI,因此您能帮助我解决此问题,可以像Rich Text Editor
import { Editor } from "@tinymce/tinymce-react";
<Editor
style={{ margin: "0px !important" }}
apiKey="jwg59xe6oa4x0o733wyeew4t655r396pbt4vqgre3mseiyxt"
initialValue="<p>This is the initial content of the editor</p>"
init={{
height: 500,
menubar: false,
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table paste code help wordcount",
],
toolbar:
"undo redo | formatselect | bold italic backcolor |" +
"alignleft aligncenter alignright alignjustify | " +
"bullist numlist outdent indent | removeformat | help",
}}
/>
I install tinymce-react but I could not see UI for tinymce-react just simple textarea as you can see in the image, So can you help me to fix this that it can working normally like rich text editor
import { Editor } from "@tinymce/tinymce-react";
<Editor
style={{ margin: "0px !important" }}
apiKey="jwg59xe6oa4x0o733wyeew4t655r396pbt4vqgre3mseiyxt"
initialValue="<p>This is the initial content of the editor</p>"
init={{
height: 500,
menubar: false,
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table paste code help wordcount",
],
toolbar:
"undo redo | formatselect | bold italic backcolor |" +
"alignleft aligncenter alignright alignjustify | " +
"bullist numlist outdent indent | removeformat | help",
}}
/>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论