Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options.preview.theme.current 需设置不使用主题样式 #617

Closed
ihewro opened this issue Jul 24, 2020 · 3 comments
Closed

options.preview.theme.current 需设置不使用主题样式 #617

ihewro opened this issue Jul 24, 2020 · 3 comments
Assignees
Milestone

Comments

@ihewro
Copy link

ihewro commented Jul 24, 2020

你在什么场景下需要该功能?

说明 默认值
current 当前主题
list 可选主题列表
path 主题样式地址

可以设置current值为null,表示不加载主题吗,我的项目中对markodwn已经写好了一份样式

现在可能有一个方法是,我在path里面填写我的项目的markdown的css地址,可以解决,但是需要拆分我的项目中的css

@ihewro ihewro changed the title options.preview.theme 可以设置不使用主题演示吗 options.preview.theme 可以设置不使用主题样式吗 Jul 24, 2020
@Vanessa219
Copy link
Owner

好像不行,会报错,等我改改。如果不加载的话还需要在 toolbar 中把 content-theme 移除

PS: 如果拆分出来的话可以共享给我一份么?

@Vanessa219 Vanessa219 changed the title options.preview.theme 可以设置不使用主题样式吗 options.preview.theme.current 需设置不使用主题样式 Jul 24, 2020
@Vanessa219 Vanessa219 self-assigned this Jul 24, 2020
@Vanessa219 Vanessa219 added this to the 3.3 milestone Jul 24, 2020
@ihewro
Copy link
Author

ihewro commented Jul 24, 2020

辛苦啦,拆分是说把我的项目的markdown css成总的css文件里面拆分成一个单独文件,然后path属性填写这个文件的资源地址,应该可以加载我自己的markodwn css文件 ,对vditor应该没啥帮助

@Vanessa219
Copy link
Owner

嗯,目前内置主题比较少,还在收集 #346

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants