Set Full Screen

Set Option

You can use editor.config.showFullScreen to set full screen before creating editor, the default value is true.

Note it is not supported when toolbar and editable area are separated. (toolbar and editable area are separated)

<div id="div1">
    <p>welcome to use wangEditor editor</p>

<script type="text/javascript" src="//"></script>
<script type="text/javascript">
    const E = window.wangEditor
    const editor = new E('#div1')

    // cancel full screen
    editor.config.showFullScreen = false



And we provide API for users(When toolbar and editable area are separated, APIs doesn't work too).

editor.fullScreen() // set full screen
editor.unFullScreen() // cancel full screen
Copyright © wangEditor (2020 - present) all right reserved,powered by GitbookFile Modify: 2022-04-11 06:40:29

results matching ""

    No results matching ""