CKEditor 4 Documentation

CKEDITOR.ui.floatPanel

Files

Represents a floating panel UI element.

It is reused by rich combos, color combos, menus, etc. and it renders its content using CKEDITOR.ui.panel.

Defined By

Methods

CKEDITOR.ui.floatPanel
view source
new( editor, parentElement, definition, level ) : CKEDITOR.ui.floatPanel
Creates a floatPanel class instance. ...

Creates a floatPanel class instance.

Parameters

Returns

CKEDITOR.ui.floatPanel
view source
( name, block )
...

Parameters

  • name : Object
  • block : Object
CKEDITOR.ui.floatPanel
view source
( name, multiSelect )
...

Parameters

  • name : Object
  • multiSelect : Object
CKEDITOR.ui.floatPanel
view source
( allow )
...

Parameters

  • allow : Object
CKEDITOR.ui.floatPanel
view source
( )
...
CKEDITOR.ui.floatPanel
view source
( )
Restores the last focused element or simply focuses the panel window. ...

Restores the last focused element or simply focuses the panel window.

CKEDITOR.ui.floatPanel
view source
( name )
...

Parameters

  • name : Object
CKEDITOR.ui.floatPanel
view source
( returnFocus )
Hides the panel. ...

Hides the panel.

Parameters

  • returnFocus : Object
CKEDITOR.ui.floatPanel
view source
( restoreFocus )
...

Parameters

  • restoreFocus : Object
CKEDITOR.ui.floatPanel
view source
( )
Repositions the panel with the same parameters that were used in the last showBlock call. ...

Repositions the panel with the same parameters that were used in the last showBlock call.

Available since: 4.5.4

CKEDITOR.ui.floatPanel
view source
( panel, blockName, offsetParent, corner, [offsetX], [offsetY] )
Shows the specified panel as a child of one block of this one. ...

Shows the specified panel as a child of one block of this one.

Parameters

  • panel : CKEDITOR.ui.floatPanel
  • blockName : String
  • offsetParent : CKEDITOR.dom.element

    Positioned parent.

  • corner : Number
    • For LTR (left to right) oriented editor:
      • 1 = top-left
      • 2 = top-right
      • 3 = bottom-right
      • 4 = bottom-left
    • For RTL (right to left):
      • 1 = top-right
      • 2 = top-left
      • 3 = bottom-left
      • 4 = bottom-right
  • offsetX : Number (optional)

    Defaults to: 0

  • offsetY : Number (optional)

    Defaults to: 0

CKEDITOR.ui.floatPanel
view source
( name, offsetParent, corner, [offsetX], [offsetY], [callback] )
Shows the panel block. ...

Shows the panel block.

Parameters

  • name : String
  • offsetParent : CKEDITOR.dom.element

    Positioned parent.

  • corner : Number
    • For LTR (left to right) oriented editor:
      • 1 = top-left
      • 2 = top-right
      • 3 = bottom-right
      • 4 = bottom-left
    • For RTL (right to left):
      • 1 = top-right
      • 2 = top-left
      • 3 = bottom-left
      • 4 = bottom-right
  • offsetX : Number (optional)

    Defaults to: 0

  • offsetY : Number (optional)

    Defaults to: 0

  • callback : Function (optional)

    A callback function executed when block positioning is done. what do exactly these params mean (especially corner)?