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 ) → floatPanelCKEDITOR.ui.floatPanel#constructorCreates a floatPanel class instance.
Parameters
editor : editorparentElement : elementdefinition : ObjectDefinition 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#focusRestores 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#showAsChildShows the specified panel as a child of one block of this one.
Parameters
panel : floatPanelblockName : StringoffsetParent : elementPositioned 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#showBlockShows the panel block.
Parameters
name : StringoffsetParent : elementPositioned 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 ] : FunctionA callback function executed when block positioning is done. what do exactly these params mean (especially corner)?