Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

配置 scroll: false 时,点击编辑器内部的空白处,编辑器 blur #163

Open
wangfupeng1988 opened this issue Aug 24, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@wangfupeng1988
Copy link
Contributor

bug 描述

如题。此时,编辑区域高度很小。

image

代码如下:

<div>
        <div id="toolbar-container-1" style="border: 1px solid #ccc; border-bottom: none;"></div>
        <div id="editor-container-1" style="border: 1px solid #ccc; min-height: 400px;"></div>
</div>
import '@wangeditor/editor-cattle/dist/css/style.css'
import { createEditor, createToolbar, IEditorConfig, IDomEditor } from '@wangeditor/editor-cattle'

const editorConfig: Partial<IEditorConfig> = {
    placeholder: '请输入内容',
    scroll: false // 设置 scroll false
}

// 创建编辑器1
const editor = createEditor({
    textareaSelector: '#editor-container-1',
    content: [],
    mode: 'default',
    config: editorConfig
})
// 创建工具栏1
const toolbar1 = createToolbar({
    editor,
    toolbarSelector: '#toolbar-container-1',
    mode: 'default'
})

你预期的样子是?

编辑区域高度撑满

系统和浏览器及版本号

所有

wangEditor 版本

v5

@wangfupeng1988 wangfupeng1988 added the bug Something isn't working label Aug 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant