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.
extends goog.editor.Plugin| Instance Method Summary | |
| getBlockquoteClassName() ⇒ stringGets the class name required for setup blockquotes. | |
| insertEmptyTextNodeBeforeRange_() ⇒ !NodeInserts an empty text node before the field's range. | |
| isSetupBlockquote(?Node node) ⇒ booleanChecks if a node is a blockquote element which has been setup. | |
| isSplittableBlockquote(?Node node) ⇒ booleanChecks if a node is a blockquote which can be split. A splittable blockquote meets the following criteria: 
 | |
| isSupportedCommand(string command) ⇒ booleanWhether the string corresponds to a command this plugin handles. | |
| isUnsetupBlockquote(?Node node) ⇒ booleanChecks if a node is a blockquote element which has not been setup yet. | |
| splitQuotedBlockIE_(?Node splitNode) ⇒ booleanIE version of splitQuotedBlock_. | |
| splitQuotedBlockW3C_(?Object anchorPos) ⇒ booleanVersion of splitQuotedBlock_ that uses W3C ranges. | |
| Static Method Summary | |
| findAndRemoveSingleChildAncestor_(?Node node, ?Node root)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. | |
| isBlockquote(?Node node, boolean isAlreadySetup, boolean requiresClassNameToSplit, string className) ⇒ booleanChecks 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. | |
| removeAllWhiteSpaceNodes_(?Array nodes)Remove every nodes from the DOM tree that are all white space nodes. | |