Open 1998729 opened 2 years ago
➜ fantasy-admin git:(main) ✗ ls node_modules/braft-extensions/dist/ assets color-picker.js index.js mention.js code-highlighter.css emoticon.css markdown.js table.css code-highlighter.js emoticon.js max-length.js table.js color-picker.css header-id.js mention.css
import 'braft-editor/dist/index.css'; import 'braft-extensions/dist/code-highlighter.css'; import React from 'react'; import BraftEditor from 'braft-editor'; import CodeHighlighter from 'braft-extensions/dist/code-highlighter'; import { PageContainer } from '@ant-design/pro-layout'; import ProCard from '@ant-design/pro-card';
// Unhandled Rejection (Error): Cannot find module 'draft-js-prism' BraftEditor.use( CodeHighlighter({ includeEditors: ['editor-with-code-highlighter'], }), );