// 热键盘 export const HOTKEYS = { 'mod+b': 'bold', 'mod+i': 'italic', 'mod+u': 'underline', 'mod+`': 'code', } export const initialValue: any[] = [ { type: 'paragraph', children: [ {text: '大家好这里是测试文件 '}, // bold: 粗细 {text: 'rich', bold: true}, {text: ' text, ', underline: true}, // italic 斜体 {text: 'much', italic: true}, {text: ' better than'}, // code 代码 {text: 'const a = hello world;', code: true}, {text: '!'}, ], }, ] export const initParagraph = [ { children: [ { text: '', }, ], type: 'paragraph', }, ] export const NOTICE_TYPE = 'notice'