ReadonlyballoonThe instance of the balloon panel that renders and positions the tooltip.
ReadonlytooltipThe view rendering text of the tooltip.
StaticdefaultA set of default module:utils/dom/position~PositioningFunction positioning functions used by the TooltipManager
to pin tooltips in different positions.
Destroys the tooltip manager.
Note: The manager singleton cannot be destroyed until all editors that use it are destroyed.
The editor the manager was created for.
StaticgetReturns #balloonPanelView module:utils/dom/position~PositioningFunction positioning functions for a given position name.
Name of the position (s, se, sw, n, e, or w).
Positioning functions to be used by the #balloonPanelView.
A tooltip manager class for the UI of the editor.
Note: Most likely you do not have to use the
TooltipManagerAPI listed below in order to display tooltips. Popular {@glink framework/architecture/ui-library UI components} support tooltips out-of-the-box via observable properties (see module:ui/button/buttonview~ButtonView#tooltip and module:ui/button/buttonview~ButtonView#tooltipPosition).Displaying tooltips
To display a tooltip, set
data-cke-tooltip-textattribute on any DOM element:The tooltip will show up whenever the user moves the mouse over the element or the element gets focus in DOM.
Positioning tooltips
To change the position of the tooltip, use the
data-cke-tooltip-positionattribute (s,se,sw,n,e, orw):Disabling tooltips
In order to disable the tooltip temporarily, use the
data-cke-tooltip-disabledattribute:Instant tooltips
To remove the delay before showing or hiding the tooltip, use the
data-cke-tooltip-instantattribute:Styling tooltips
By default, the tooltip has
.ck-tooltipclass and its text inner.ck-tooltip__text.If your tooltip requires custom styling, using
data-cke-tooltip-classattribute will add additional class to the balloon displaying the tooltip:Note: This class is a singleton. All editor instances re-use the same instance loaded by module:ui/editorui/editorui~EditorUI of the first editor.