feat: 评论区支持高度调整

This commit is contained in:
Tim
2025-07-25 10:57:29 +08:00
parent f5447604d6
commit 0cf44c2a42
4 changed files with 9 additions and 5 deletions

View File

@@ -14,7 +14,6 @@ export function getPreviewTheme() {
export function createVditor(editorId, options = {}) {
const {
placeholder = '',
height,
preview = {},
input,
after
@@ -22,7 +21,7 @@ export function createVditor(editorId, options = {}) {
return new Vditor(editorId, {
placeholder,
height,
height: 'auto',
theme: getEditorTheme(),
preview: Object.assign({ theme: { current: getPreviewTheme() } }, preview),
cdn: 'https://openisle-1307107697.cos.ap-guangzhou.myqcloud.com/assert/vditor',