Skip to content

Commit

Permalink
fix #617
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jul 24, 2020
1 parent febb24e commit 18d299e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@

### v3.3.11 / 2020-07-xx

* [617](/~https://github.com/Vanessa219/vditor/issues/617) options.preview.theme.current 需设置不使用主题样式 `改进功能`
* [611](/~https://github.com/Vanessa219/vditor/issues/611) SV 模式粘贴图片拉取上传问题 `修复缺陷`
* [616](/~https://github.com/Vanessa219/vditor/pull/616) fix: safari下选中文字添加标题文字会消失 `修复缺陷`
* [615](/~https://github.com/Vanessa219/vditor/issues/615) 即时渲染模式下在safari中光标位置跳动 `修复缺陷`
Expand Down
3 changes: 3 additions & 0 deletions src/ts/ui/setContentTheme.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import {addStyle} from "../util/addStyle";

export const setContentTheme = (contentTheme: string, path: string) => {
if (!contentTheme || !path) {
return;
}
const vditorContentTheme = document.getElementById("vditorContentTheme") as HTMLLinkElement;
const cssPath = `${path}/${contentTheme}.css`;
if (!vditorContentTheme) {
Expand Down

0 comments on commit 18d299e

Please sign in to comment.