FullscreenConfig
The configuration of the fullscreen mode feature.
The properties defined in this config are set in the config.fullscreen
namespace.
ClassicEditor
.create( editorElement, {
fullscreen: {
// Fullscreen mode configuration.
}
} )
.then( ... )
.catch( ... );
See all editor options.
Properties
-
container : HTMLElement | undefined
module:fullscreen/fullscreenconfig~FullscreenConfig#container
The container element for the fullscreen mode. This should be a reference to an existing, positioned element in the DOM. By default, the fullscreen mode is appended to the
<body>
element. -
menuBar : object | undefined
module:fullscreen/fullscreenconfig~FullscreenConfig#menuBar
The configuration of the menu bar in the fullscreen mode.
-
onEnterCallback : ( container: HTMLElement ) => void | undefined
module:fullscreen/fullscreenconfig~FullscreenConfig#onEnterCallback
Customizable callback that is called when you enter the fullscreen mode. It's executed after the editor UI elements are moved to the fullscreen mode.
Defaults to
`() => {}`
-
onLeaveCallback : ( container: HTMLElement ) => void | undefined
module:fullscreen/fullscreenconfig~FullscreenConfig#onLeaveCallback
Customizable callback that is called when you leave the fullscreen mode. It's executed before the editor UI elements are moved back to the normal mode.
Defaults to
`() => {}`
-
toolbar : object | undefined
module:fullscreen/fullscreenconfig~FullscreenConfig#toolbar
The configuration of the toolbar in the fullscreen mode.