feat: workflow add note node (#5164)

This commit is contained in:
zxhlyh
2024-06-14 17:08:11 +08:00
committed by GitHub
parent d7fbae286a
commit c28d709d7f
69 changed files with 2375 additions and 169 deletions

View File

@@ -0,0 +1,17 @@
import type { EditorThemeClasses } from 'lexical'
import './theme.css'
const theme: EditorThemeClasses = {
paragraph: 'note-editor-theme_paragraph',
list: {
ul: 'note-editor-theme_list-ul',
listitem: 'note-editor-theme_list-li',
},
link: 'note-editor-theme_link',
text: {
strikethrough: 'note-editor-theme_text-strikethrough',
},
}
export default theme

View File

@@ -0,0 +1,24 @@
.note-editor-theme_paragraph {
font-size: 12px;
}
.note-editor-theme_list-ul {
font-size: 12px;
margin: 0;
padding: 0;
list-style: disc;
}
.note-editor-theme_list-li {
margin-left: 18px;
margin-right: 8px;
}
.note-editor-theme_link {
text-decoration: underline;
cursor: pointer;
}
.note-editor-theme_text-strikethrough {
text-decoration: line-through;
}