abstractbubbleplugin.js
No description.

File Location

/goog/editor/plugins/abstractbubbleplugin.js

Classes

goog.editor.plugins.AbstractBubblePlugin
Base class for bubble plugins. This is used for to connect user behavior in the editor to a goog.ui.editor.Bubble UI element that allows the user to modify the properties of an element on their page (e.g. the alt text of an image tag). Subclasses should override the abstract method getBubbleTargetFromSelection() with code to determine if the current selection should activate the bubble type. The other abstract method createBubbleContents() should be overriden with code to create the inside markup of the bubble. The base class creates the rest of the bubble.

Public Protected Private

Global Functions

goog.editor.plugins.AbstractBubblePlugin.defaultBubbleFactory_(parentzIndex) !goog.ui.editor.Bubble
Default factory function for creating a bubble UI component.
Arguments:
parent : !Element
The parent element for the bubble.
zIndex : number
The z index to draw the bubble at.
Returns: !goog.ui.editor.Bubble  The new bubble component.
code »
goog.editor.plugins.AbstractBubblePlugin.globalBubbleFactory_()
Global factory function that creates a bubble UI component. It takes as parameters the bubble parent element and the z index to draw the bubble at.
code »
goog.editor.plugins.AbstractBubblePlugin.setBubbleFactory(bubbleFactory)
Sets the global bubble factory function.
Arguments:
bubbleFactory : function(!Element, number): !goog.ui.editor.Bubble
Function that creates a bubble for the given bubble parent element and z index.
code »

Directory plugins

File Reference