import 'tui-color-picker/dist/tui-color-picker.css'
import '@toast-ui/editor/dist/toastui-editor.css'
import '@toast-ui/editor-plugin-color-syntax/dist/toastui-editor-plugin-color-syntax.css'
import colorSyntax from '@toast-ui/editor-plugin-color-syntax'
import { Viewer, ViewerProps } from '@toast-ui/react-editor'
function ToastViewer(props: ViewerProps) {
return (
<Viewer
plugins={[colorSyntax]}
usageStatistics={false}
{...props}
/>
)
}
export default ToastViewer
import '@toast-ui/editor/dist/toastui-editor.css'
import { Viewer, ViewerProps } from '@toast-ui/react-editor'
function ToastViewer(props: ViewerProps) {
return (
<Viewer
usageStatistics={false}
{...props}
/>
)
}
export default ToastViewer
plugins={[colorSyntax]}
부분을 삭제했다.