Split Toolbar and Editable Area

Toolbar and editable area allows to separated in wangEditor.

Because Toolbar and editable area is controlled element in wangEditor, you can customize styles such as fixed toolbar、auto add editing area height and so on.

        .toolbar {
            border: 1px solid #ccc;
        .text {
            border: 1px solid #ccc;
            min-height: 400px;
        container and toolbar split
        <div id="toolbar-container" class="toolbar"></div>
        <p>------ split line ------</p>
        <div id="text-container" class="text"></div>

    <script src="//unpkg.com/wangeditor/dist/wangEditor.min.js"></script>
        const E = window.wangEditor
        const editor = new E('#toolbar-container', '#text-container') // transfer two element

From upper code , you can knows that toolbar and editable area is two div , that means you can set any style you want.

Copyright © wangEditor (2020 - present) all right reserved,powered by GitbookFile Modify: 2022-04-11 06:40:29

results matching ""

    No results matching ""