index.ts 425 B

123456789101112131415161718
  1. import type { EditorThemeClasses } from 'lexical'
  2. import './theme.css'
  3. const theme: EditorThemeClasses = {
  4. paragraph: 'note-editor-theme_paragraph',
  5. list: {
  6. ul: 'note-editor-theme_list-ul',
  7. listitem: 'note-editor-theme_list-li',
  8. },
  9. link: 'note-editor-theme_link',
  10. text: {
  11. italic: 'note-editor-theme_text-italic',
  12. strikethrough: 'note-editor-theme_text-strikethrough',
  13. },
  14. }
  15. export default theme