Skip to content

Commit

Permalink
Merge pull request 'v1.3.2 Releases' (#24) from dev into main
Browse files Browse the repository at this point in the history
  • Loading branch information
justice2001 committed Dec 22, 2023
2 parents 9031287 + 7e346ed commit 240513d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion console/src/utils/vditor-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ import { mdiImage } from "@/utils/icon";
import { t } from "@/utils/i18n-utils";

export function getOptions(options: Options): IOptions {
const cdn =
`${window.location.protocol}//${window.location.host}` +
`/plugins/vditor-mde/assets/static`;
console.log(`Your CDN IS: ${cdn}`);
return {
height: "100%",
mode: options.defaultRenderMode,
typewriterMode: options.typeWriterMode,
cdn: "/plugins/vditor-mde/assets/static",
cdn: cdn,
icon: "material",
lang: getLanguage(options.language),
toolbarConfig: {
Expand All @@ -27,6 +31,10 @@ export function getOptions(options: Options): IOptions {
toc: true,
codeBlockPreview: options.codeBlockPreview,
},
theme: {
current: "light",
path: `${cdn}/dist/css/content-theme`,
},
},
outline: {
enable: true,
Expand Down

0 comments on commit 240513d

Please sign in to comment.