mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-27 11:24:43 +00:00
feat(webui): replace legacy markdown editor with new lexical wysiwyg editor (#308)
* feat(webui): replace legacy markdown editor with new lexical wysiwyg editor * refactor(webui): organize markdown editor files into components/markdown-editor folder
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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',
|
||||
}
|
||||
Reference in New Issue
Block a user