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>
</div>

<script type="text/javascript" src="//unpkg.com/wangeditor/dist/wangEditor.min.js"></script>
<script type="text/javascript">
    const E = window.wangEditor
    const editor = new E('#div1')

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

    editor.create()
</script>

API

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: 2021-07-04 12:51:04

results matching ""

    No results matching ""