We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
theme.path 每次调用会加载 content-theme/light.css highlight.js/styles/github.css
Vditor.preview(previewElement!, props.text ?? '', { mode: 'light', cdn: VDITOR_CDN, theme: { current: 'light', path: `${VDITOR_CDN}/dist/css/content-theme`, }, // markdown: { // toc: true, // listStyle: true, // }, // anchor: 1, });
new Vditor 多次调用会加载 css/content-theme/light.css
new Vditor(vditorRef.value!, { ...bindProps, cdn: VDITOR_CDN, i18n: { ...window.VditorI18n, upload: '上传图片', }, preview: { theme: { current: 'light', path: `${VDITOR_CDN}/dist/css/content-theme`, }, }, });
The text was updated successfully, but these errors were encountered:
研究了一下, document.href 会自动加载域名路径,因为我设置的是 /vditor 这种路径,如果使用getAttribute('href') 就不会有这问题
docment.getAttribute('href')
或者设置加上域名的cdn路径
Sorry, something went wrong.
b43f454
Vanessa219
No branches or pull requests
theme.path 每次调用会加载 content-theme/light.css highlight.js/styles/github.css
new Vditor 多次调用会加载 css/content-theme/light.css
The text was updated successfully, but these errors were encountered: