From a7a66e113f7cf94a42e4ac6ddcdf2639383524aa Mon Sep 17 00:00:00 2001 From: thzxx <1440196015@qq.com> Date: Fri, 24 Jul 2026 10:36:55 +0800 Subject: [PATCH] feat(site): complete demo.html redesign with all features enabled - Modern glassmorphism design with gradient header - Full control bar: theme/locale/mode/line numbers/outline toggle - All 4 preset plugins active: autoSave, exportTool, searchReplace, imagePaste - Rich demo content showcasing all v0.1.7 syntax features - Toast notification demo button - Custom shortcut (Ctrl+Shift+T) demo - Responsive layout with info cards grid - Light/dark theme CSS variable integration --- site/demo.html | 854 +++++++++++++++++++++++++++---------------------- 1 file changed, 464 insertions(+), 390 deletions(-) diff --git a/site/demo.html b/site/demo.html index e5f3983..4e05817 100644 --- a/site/demo.html +++ b/site/demo.html @@ -1,444 +1,518 @@ - + - - -MetonaEditor · 功能演示 + + +MetonaEditor v0.1.7 — 在线演示 -
-
-

- MetonaEditor 功能演示 - ← 返回首页 - 📖 文档 -

-
- 主题 -
- - - -
- 语言 -
- - -
- 模式 -
- -
-
+ +
+

MetonaEditor

+
+ v0.1.7 + 零依赖 + 532 tests + MIT + 中文优先 +
+
+ +
+ + + + + + + +
+ + +
-
-
- - 状态:运行中 -
-
模式:split
-
主题:light
-
语言:zh-CN
-
字数:0
-
全屏:
+
+ + +
+ +
-
- -
-
-
- API 控制台 - 0 次调用 -
-
-
- - - - - - - - - - - - - - - - - - - -
-
- -
-
- 事件流(实时) - 0 个事件 -
-
-
+ +
+ +
-
- 快捷键提示: - 编辑区内按 Ctrl+B 加粗、Ctrl+I 斜体、Ctrl+K 插入链接、 - Ctrl+Z 撤销、Ctrl+S 触发保存、Ctrl+F 查找、Ctrl+H 替换、 - Tab 缩进、Esc 关闭面板。 + + +
+ +
+
+
+
+
+
📝
+

丰富语法

+

数学公式、脚注、定义列表、嵌套列表、表格对齐、任务列表、Emoji

+
+
+
⌨️
+

快捷键

+

Ctrl+B 粗体 · Ctrl+I 斜体 · Ctrl+S 保存 · Ctrl+F 搜索 · Ctrl+H 替换

+
+
+
🎨
+

4 套主题

+

亮色 · 暗色 · 暖色 · 跟随系统,实例级隔离,外部主题跟随

+
+
+
🔌
+

4 个插件

+

自动保存草稿 · 导出 MD/HTML · 搜索替换 · 图片粘贴

+
+
+
🧩
+

编辑增强

+

行号装订线 · 智能 Enter · 括号自动闭合 · 拖放文件 · 大纲面板

+
+
+
🛡️
+

安全

+

XSS 防护 · URL 协议过滤 · HTML 实体保护 · sanitize 钩子

+
+
+ + +