@@ -113,8 +113,14 @@ export default function TinyMCEEditor<KeyType extends string>({
|
||||
"advlist lists link image charmap preview anchor searchreplace visualblocks code fullscreen insertdatetime media table code help wordcount",
|
||||
toolbar:
|
||||
"undo redo | blocks | bold italic underline link image | align bullist numlist | outdent indent removeformat code searchreplace wordcount preview insertdatetime",
|
||||
content_style:
|
||||
content_style: [
|
||||
"body { font-family:Helvetica,Arial,sans-serif; font-size:14px; background-color: transparent }",
|
||||
`.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before { color: ${
|
||||
darkMode
|
||||
? "rgba(255, 255, 255, 0.45)"
|
||||
: "rgba(34, 47, 62, 0.6)"
|
||||
} !important; }`,
|
||||
].join("\n"),
|
||||
init_instance_callback: (editor) => {
|
||||
if (editorRef) {
|
||||
editorRef.current = editor;
|
||||
|
||||
Reference in New Issue
Block a user