mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 22:38:43 +00:00
* feat(webui): replace legacy markdown editor with new lexical wysiwyg editor * refactor(webui): organize markdown editor files into components/markdown-editor folder
33 lines
878 B
TypeScript
33 lines
878 B
TypeScript
import type { EditorThemeClasses } from 'lexical'
|
|
|
|
export const editorTheme: EditorThemeClasses = {
|
|
paragraph: 'editor-paragraph',
|
|
quote: 'editor-quote',
|
|
heading: {
|
|
h1: 'editor-heading-h1',
|
|
h2: 'editor-heading-h2',
|
|
h3: 'editor-heading-h3',
|
|
},
|
|
list: {
|
|
checklist: 'editor-checklist',
|
|
listitem: 'editor-listitem',
|
|
listitemChecked: 'editor-listitem-checked',
|
|
listitemUnchecked: 'editor-listitem-unchecked',
|
|
nested: {
|
|
listitem: 'editor-nested-listitem',
|
|
},
|
|
ol: 'editor-list-ol',
|
|
ul: 'editor-list-ul',
|
|
},
|
|
link: 'editor-link',
|
|
text: {
|
|
bold: 'editor-text-bold',
|
|
italic: 'editor-text-italic',
|
|
underline: 'editor-text-underline',
|
|
strikethrough: 'editor-text-strikethrough',
|
|
underlineStrikethrough: 'editor-text-underlineStrikethrough',
|
|
code: 'editor-text-code',
|
|
},
|
|
code: 'editor-code-block',
|
|
}
|