Class

DecoupledEditorHandler (fullscreen/handlers)

@ckeditor/ckeditor5-fullscreen/src/handlers/decouplededitorhandler

class

The decoupled editor fullscreen mode handler.

Filtering

Properties

  • inherited

    updateDialogPositionCallback : ( EventInfo<string, unknown>, string, boolean ) => void

    Stores a bound reference to the _updateDialogPosition method, allowing it to be attached and detached from change event.

  • protected inherited

    _closeRevisionViewerCallback : null | ( default ) => Promise<unknown>

    A callback that closes the revision viewer, stored to restore the original one after exiting the fullscreen mode.

  • protected readonly

    _editor : DecoupledEditor

    An editor instance.

  • protected inherited

    _showRevisionViewerCallback : null | ( EditorConfig ) => Promise<null | default>

    A callback that shows the revision viewer, stored to restore the original one after exiting the fullscreen mode.

Methods

  • constructor( editor )

    Parameters

    editor : DecoupledEditor
  • inherited

    destroy() → void

    Returns

    void
  • inherited

    disable() → void

    Disables the fullscreen mode by restoring all moved elements and destroying the fullscreen container.

    Returns

    void
  • inherited

    enable() → void

    Enables the fullscreen mode. It executes the editor-specific enable handler and then the configured callback.

    Returns

    void
  • inherited

    getWrapper() → HTMLElement

    Returns the fullscreen mode container element.

    Returns

    HTMLElement
  • inherited

    moveToFullscreen( elementToMove, placeholderName ) → void

    Moves the given element to the fullscreen mode container, leaving a placeholder in its place.

    Parameters

    elementToMove : HTMLElement
    placeholderName : string

    Returns

    void
  • inherited

    restoreMovedElementLocation( placeholderName ) → void

    Returns a single moved element to its original place.

    Parameters

    placeholderName : string

    Returns

    void
  • protected

    _defaultOnEnter() → HTMLElement

    A function that moves the editor UI elements to the fullscreen mode.

    Returns

    HTMLElement