diff --git a/examples/sites/demos/pc/app/fluent-editor/options-formula-composition-api.vue b/examples/sites/demos/pc/app/fluent-editor/options-formula-composition-api.vue new file mode 100644 index 0000000000..97c5800409 --- /dev/null +++ b/examples/sites/demos/pc/app/fluent-editor/options-formula-composition-api.vue @@ -0,0 +1,36 @@ + + + diff --git a/examples/sites/demos/pc/app/fluent-editor/options-formula.vue b/examples/sites/demos/pc/app/fluent-editor/options-formula.vue new file mode 100644 index 0000000000..e266eaf24f --- /dev/null +++ b/examples/sites/demos/pc/app/fluent-editor/options-formula.vue @@ -0,0 +1,40 @@ + + + diff --git a/examples/sites/demos/pc/app/fluent-editor/webdoc/fluent-editor.js b/examples/sites/demos/pc/app/fluent-editor/webdoc/fluent-editor.js index 47aaa425ff..e1a27949d6 100644 --- a/examples/sites/demos/pc/app/fluent-editor/webdoc/fluent-editor.js +++ b/examples/sites/demos/pc/app/fluent-editor/webdoc/fluent-editor.js @@ -51,6 +51,18 @@ export default { }, codeFiles: ['options.vue'] }, + { + demoId: 'formula', + name: { + 'zh-CN': '可编辑公式', + 'en-US': 'Formula' + }, + desc: { + 'zh-CN': '通过设置 options 中的 mathlive 为 true 开启可编辑公式功能。', + 'en-US': '' + }, + codeFiles: ['options-formula.vue'] + }, { demoId: 'data-switch', name: { diff --git a/examples/sites/package.json b/examples/sites/package.json index 0391d9d84e..38c5b0f6ed 100644 --- a/examples/sites/package.json +++ b/examples/sites/package.json @@ -41,6 +41,7 @@ "github-markdown-css": "^5.1.0", "highlight.js": "^11.5.1", "marked": "^4.3.0", + "mathlive": "^0.101.1", "prismjs": "^1.28.0", "sortablejs": "1.15.0", "tailwindcss": "^3.2.4", diff --git a/packages/vue/src/fluent-editor/package.json b/packages/vue/src/fluent-editor/package.json index be885dc1c6..7329594911 100644 --- a/packages/vue/src/fluent-editor/package.json +++ b/packages/vue/src/fluent-editor/package.json @@ -11,7 +11,7 @@ "//postversion": "pnpm build" }, "dependencies": { - "@opentiny/fluent-editor": "~3.20.0", + "@opentiny/fluent-editor": "~3.22.0", "@opentiny/vue-common": "workspace:~", "@opentiny/vue-icon": "workspace:~", "@opentiny/vue-image-viewer": "workspace:~",