-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: change bundle dependencies * build: split code chunk * docs: update style import * docs: syntax module usage * refactor: change theme name to style.css * fix: syntax module type
- Loading branch information
Showing
35 changed files
with
4,894 additions
and
3,836 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# 代码块高亮 | ||
|
||
通过设置 `syntax` 模块为 true,可以开启代码块高亮功能。 | ||
使用代码块高亮需要安装 [`highlight.js`](https://highlightjs.org/) 插件。 | ||
|
||
如果 highlight.js 暴露在 `window` 上,你可以设置 `syntax` 模块为 `true` 可开启代码块高亮功能。 | ||
|
||
如果 highlight.js 没有暴露在 `window` 上,你需要将导入的 highlight.js 传递给 `syntax` 模块的 `hljs` 选项。 | ||
|
||
:::demo src=demos/code-block-highlight.vue | ||
::: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
import { defineConfig } from 'vite' | ||
import { viteDemoPreviewPlugin } from '@vitepress-code-preview/plugin' | ||
import path from 'path' | ||
|
||
const fluentEditorRoot = path.resolve(__dirname, '../../fluent-editor') | ||
export default defineConfig({ | ||
plugins: [viteDemoPreviewPlugin()], | ||
resolve: { | ||
alias: [ | ||
{ | ||
find: /^@opentiny\/fluent-editor(\/(es|lib))?$/, | ||
replacement: path.resolve(fluentEditorRoot, 'src/index.ts'), | ||
}, | ||
{ | ||
find: /^@opentiny\/fluent-editor\/(theme)\/(.*)$/, | ||
replacement: `${path.resolve(fluentEditorRoot, 'src/assets')}/$1/$2`, | ||
}, | ||
], | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@font-face { | ||
font-family: "iconfont"; /* Project id 3231649 */ | ||
src: url('./iconfont/iconfont.woff2') format('woff2'), | ||
url('./iconfont/iconfont.woff') format('woff'), | ||
url('./iconfont/iconfont.ttf') format('truetype'); | ||
} | ||
@import 'quill/dist/quill.snow'; | ||
|
||
@import './common'; | ||
@import './mention'; | ||
@import './toolbar'; | ||
@import './editor'; | ||
@import './counter'; | ||
@import './size'; | ||
@import './font'; | ||
@import './lineHeight'; | ||
@import './better-table'; | ||
@import './custom-image'; | ||
@import './fileBar'; | ||
@import './link'; | ||
@import './fullscreen'; | ||
|
||
// 模块:字数统计 counter | ||
@include counter; | ||
|
||
// 模块:@提醒 mention | ||
@include mention; | ||
|
||
// 模块:工具栏 toolbar | ||
@include toolbar; | ||
|
||
// @include lineHeightList; | ||
|
||
// 图片预览 | ||
@include imagePreview; | ||
|
||
@include fontFamilyContent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import './styles.scss' | ||
// 后面合并两个配置 | ||
// export * from './config/editor.config' | ||
// export * from './config' | ||
|
Oops, something went wrong.