diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 358fe72..e819af5 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -31,31 +31,30 @@ const TinyEditorSidebar = [ }, { text: '使用示例', - base: '/tiny-editor/demo/', items: [ - { text: '基本用法', link: 'basic-usage' }, - { text: '内容初始化', link: 'set-content' }, - { text: '获取内容', link: 'get-content' }, - { text: '自定义工具栏', link: 'custom-toolbar' }, - { text: '增加工具栏', link: 'add-toolbar-item' }, - { text: '文件上传', link: 'file-upload' }, - { text: '代码块高亮', link: 'code-block-highlight' }, - { text: '表格', link: 'table-up' }, - { text: '@提醒', link: 'mention' }, - { text: '快捷菜单', link: 'shortcut-key' }, - { text: '插入表情', link: 'emoji' }, - { text: '格式刷', link: 'format-painter' }, - { text: '公式', link: 'formula' }, - { text: 'Markdown', link: 'markdown' }, - { text: '字符统计', link: 'counter' }, - { text: '截屏', link: 'screenshot' }, - { text: '国际化', link: 'i18n' }, - { text: '标题列表', link: 'header-list' }, - { text: '工具栏提示', link: 'toolbar-tip' }, - { text: '只读模式', link: 'readonly' }, + { text: '基本用法', link: '/tiny-editor/demo/basic-usage' }, + { text: '内容初始化', link: '/tiny-editor/demo/set-content' }, + { text: '获取内容', link: '/tiny-editor/demo/get-content' }, + { text: '自定义工具栏', link: '/tiny-editor/demo/custom-toolbar' }, + { text: '增加工具栏', link: '/tiny-editor/demo/add-toolbar-item' }, + { text: '文件上传', link: '/tiny-editor/demo/file-upload' }, + { text: '代码块高亮', link: '/tiny-editor/demo/code-block-highlight' }, + { text: '表格', link: '/tiny-editor/demo/table-up' }, + { text: '@提醒', link: '/tiny-editor/demo/mention' }, + { text: '快捷菜单', link: '/tiny-editor/demo/shortcut-key' }, + { text: '插入表情', link: '/tiny-editor/demo/emoji' }, + { text: '格式刷', link: '/tiny-editor/demo/format-painter' }, + { text: '公式', link: '/tiny-editor/demo/formula' }, + { text: 'Markdown', link: '/tiny-editor/demo/markdown' }, + { text: '字符统计', link: '/tiny-editor/demo/counter' }, + { text: '截屏', link: '/tiny-editor/demo/screenshot' }, + { text: '国际化', link: '/tiny-editor/demo/i18n' }, + { text: '标题列表', link: '/tiny-editor/demo/header-list' }, + { text: '工具栏提示', link: '/tiny-editor/demo/toolbar-tip' }, + { text: '只读模式', link: '/tiny-editor/demo/readonly' }, { text: '模拟语雀文档', link: 'https://opentiny.github.io/tiny-editor/projects' }, - { text: '图片工具栏', link: 'image-tool' }, - { text: '协同编辑', link: 'collaborative-editing' } + { text: '图片工具栏', link: '/tiny-editor/demo/image-tool' }, + { text: '协同编辑', link: '/tiny-editor/demo/collaborative-editing' } ] }, { diff --git a/.vitepress/theme/components/CustomHeader.vue b/.vitepress/theme/components/CustomHeader.vue index 67052e1..6b717d1 100644 --- a/.vitepress/theme/components/CustomHeader.vue +++ b/.vitepress/theme/components/CustomHeader.vue @@ -452,14 +452,14 @@ const productTabs = computed(() => [ activeProductTab.value === "tiny-engine" ? "active" : "normal" }-tiny-engine.svg`, }, - // { - // key: "tiny-editor", - // name: "TinyEditor", - // link: `${prefix}tiny-editor/guide/quick-start`, - // src: `${prefix}images/logo-${ - // activeProductTab.value === "tiny-editor" ? "active" : "normal" - // }-tiny-editor.svg`, - // }, + { + key: "tiny-editor", + name: "TinyEditor", + link: `${prefix}tiny-editor/guide/quick-start`, + src: `${prefix}images/logo-${ + activeProductTab.value === "tiny-editor" ? "active" : "normal" + }-tiny-editor.svg`, + }, { key: "web-agent", name: "WebAgent", diff --git a/package.json b/package.json index 57ebd89..87d0f28 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,32 @@ "mermaid": "^11.12.2", "vitepress": "^1.6.3", "vitepress-demo-plugin": "1.5.0", - "vitepress-plugin-tabs": "^0.7.3" + "vitepress-plugin-tabs": "^0.7.3", + "@emoji-mart/data": "^1.2.1", + "@floating-ui/dom": "^1.7.2", + "@logicflow/core": "^2.0.16", + "@logicflow/extension": "^2.0.21", + "@opentiny/fluent-editor": "^4.1.0", + "emoji-mart": "^5.6.0", + "highlight.js": "^10.2.0", + "html2canvas": "^1.4.1", + "katex": "^0.16.11", + "mathlive": "^0.101.0", + "quill-cursors": "^4.0.3", + "quill-header-list": "0.0.2", + "quill-markdown-shortcuts": "^0.0.10", + "quill-table-up": "^3.3.0", + "quill-toolbar-tip": "^0.0.13", + "simple-mind-map": "0.14.0-fix.1", + "simple-mind-map-plugin-themes": "^1.0.1", + "vue": "^3.5.13", + "vue-toastification": "2.0.0-rc.5", + "y-indexeddb": "^9.0.12", + "y-protocols": "^1.0.6", + "y-quill": "^1.0.0", + "y-webrtc": "^10.3.0", + "y-websocket": "^3.0.0", + "yjs": "^13.6.27" }, "dependencies": { "vue": "^3.5.13"