The goog.editor.plugins.LinkBubble.Action Class

goog.editor.plugins.LinkBubble.Action(spanId, linkId, message, toShowFn, actionFn)

Constructor for extra actions that can be added to the link bubble.

spanId {string}
The ID for the span showing the action.
linkId {string}
The ID for the link showing the action.
message {string}
The text for the link showing the action.
toShowFn {function(string):boolean}
Test function to determine whether to show the action for the given URL.
actionFn {function(string):void}
Action function to run when the action is clicked. Takes the current target URL as a parameter.