mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-26 16:10:49 +08:00
feat: 评论区支持高度调整
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user