选定的表格单元格的背景颜色没有变化,并且合并单元格选项没有出现。
import '@toast-ui/editor/dist/toastui-editor.css'; import '@toast-ui/editor-plugin-table-merged-cell/dist/toastui-editor-plugin-table-merged-cell.css'; import { Editor } from '@toast-ui/react-editor'; import React from 'react'; import tableMergedCell from "@toast-ui/editor-plugin-table-merged-cell";
interface AdvancedTextEditorProps { ref?: any; defaultValue?: string; value?: string; placeholder?: string; onChange?: (event: any) => void; readonly?: boolean; minHeight?: string; maxHeight?: string; }
export const AdvancedTextEditor: React.FC = ({ ref, defaultValue, value, placeholder, onChange, readonly, minHeight, maxHeight }) => { const toolbarOptions = [ ['heading', 'bold', 'italic', 'strike'], ['hr', 'quote'], ['ul', 'ol', 'task'], ['table', 'image', 'link'], ['code', 'codeblock'], ['scrollSync'] ];
return ( ); };
内容来源: nhn/tui.editor