blockquote.js
No description.

File Location

/goog/editor/plugins/blockquote.js

Classes

goog.editor.plugins.Blockquote
Plugin to handle splitting block quotes. This plugin does nothing on its own and should be used in conjunction with EnterHandler or one of its subclasses.

Public Protected Private

Global Functions

goog.editor.plugins.Blockquote.findAndRemoveSingleChildAncestor_(noderoot)
Helper routine which walks up the tree to find the topmost ancestor with only a single child. The ancestor node or the original node (if no ancestor was found) is then removed from the DOM.
Arguments:
node : Node
The node whose ancestors have to be searched.
root : Node
The root node to stop the search at.
code »
goog.editor.plugins.Blockquote.isBlockquote(nodeisAlreadySetuprequiresClassNameToSplitclassName) boolean
Use #isSplittableBlockquote, #isSetupBlockquote, or #isUnsetupBlockquote instead since this has confusing behavior. Checks if a node is a blockquote node. If isAlreadySetup is set, it also makes sure the node has the blockquote classname applied. Otherwise, it ensures that the blockquote does not already have the classname applied.
Arguments:
node : Node
DOM node to check.
isAlreadySetup : boolean
True to enforce that the classname must be set in order for it to count as a blockquote, false to enforce that the classname must not be set in order for it to count as a blockquote.
requiresClassNameToSplit : boolean
Whether only blockquotes with the class name should be split.
className : string
The official blockquote class name.
Returns: boolean  Whether node is a blockquote and if isAlreadySetup is true, then whether this is a setup blockquote.
code »
goog.editor.plugins.Blockquote.findAndRemoveSingleChildAncestor_&predicateFunc()
No description.
code »
goog.editor.plugins.Blockquote.removeAllWhiteSpaceNodes_(nodes)
Remove every nodes from the DOM tree that are all white space nodes.
Arguments:
nodes : Array.<Node>
Nodes to be checked.
code »

Directory plugins

File Reference