#3211·tui.editor

选定的表格单元格的背景颜色没有变化,并且合并单元格选项没有出现。

作者: jjungeun创建于 2023年12月20日更新于 2026年1月28日
标签Question

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 ( ); };