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 : NumberReturns
floatPanel
addBlock( name, block )CKEDITOR.ui.floatPanel#addBlockaddListBlock( name, multiSelect )CKEDITOR.ui.floatPanel#addListBlockallowBlur( allow )CKEDITOR.ui.floatPanel#allowBlurblur()CKEDITOR.ui.floatPanel#blurfocus()CKEDITOR.ui.floatPanel#focusRestores the last focused element or simply focuses the panel window.
getBlock( name )CKEDITOR.ui.floatPanel#getBlockhide( returnFocus )CKEDITOR.ui.floatPanel#hidehideChild( restoreFocus )CKEDITOR.ui.floatPanel#hideChildRepositions 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-left2= top-right3= bottom-right4= bottom-left
- For RTL (right to left):
1= top-right2= top-left3= bottom-left4= bottom-right
- For LTR (left to right) oriented editor:
[ offsetX ] : NumberDefaults to
0[ offsetY ] : NumberDefaults to
0showBlock( 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-left2= top-right3= bottom-right4= bottom-left
- For RTL (right to left):
1= top-right2= top-left3= bottom-left4= bottom-right
- For LTR (left to right) oriented editor:
[ offsetX ] : NumberDefaults to
0[ offsetY ] : NumberDefaults to
0[ callback ] : FunctionA callback function executed when block positioning is done. what do exactly these params mean (especially corner)?