CKEDITOR.ui.floatPanel
class
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.
Filtering
Methods
-
constructor( editor, parentElement, definition, level ) → floatPanel
CKEDITOR.ui.floatPanel#constructor
Creates a floatPanel class instance.
Parameters
editor : editor
parentElement : element
definition : Object
Definition of the panel that will be floating.
level : Number
Returns
floatPanel
-
addBlock( name, block )
CKEDITOR.ui.floatPanel#addBlock
-
addListBlock( name, multiSelect )
CKEDITOR.ui.floatPanel#addListBlock
-
allowBlur( allow )
CKEDITOR.ui.floatPanel#allowBlur
-
blur()
CKEDITOR.ui.floatPanel#blur
-
focus()
CKEDITOR.ui.floatPanel#focus
Restores the last focused element or simply focuses the panel window.
-
getBlock( name )
CKEDITOR.ui.floatPanel#getBlock
-
hide( returnFocus )
CKEDITOR.ui.floatPanel#hide
-
hideChild( restoreFocus )
CKEDITOR.ui.floatPanel#hideChild
-
Repositions the panel with the same parameters that were used in the last showBlock call.
-
showAsChild( panel, blockName, offsetParent, corner, [ offsetX ], [ offsetY ] )
CKEDITOR.ui.floatPanel#showAsChild
Shows the specified panel as a child of one block of this one.
Parameters
panel : floatPanel
blockName : String
offsetParent : 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
-
- For LTR (left to right) oriented editor:
[ offsetX ] : Number
-
Defaults to
0
[ offsetY ] : Number
-
Defaults to
0
-
showBlock( name, offsetParent, corner, [ offsetX ], [ offsetY ], [ callback ] )
CKEDITOR.ui.floatPanel#showBlock
Shows the panel block.
Parameters
name : String
offsetParent : 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
-
- For LTR (left to right) oriented editor:
[ offsetX ] : Number
-
Defaults to
0
[ offsetY ] : Number
-
Defaults to
0
[ callback ] : Function
A callback function executed when block positioning is done. what do exactly these params mean (especially corner)?