basictextformatter.js
No description.

File Location

/goog/editor/plugins/basictextformatter.js

Classes

goog.editor.plugins.BasicTextFormatter
Functions to style text (e.g. underline, make bold, etc.)

Public Protected Private

Enumerations

Global Functions

goog.editor.plugins.BasicTextFormatter.convertContainerToTextAlign_(node)
Converts the block element containing the given node to use CSS text-align instead of the align property.
Arguments:
node : Node
The node to convert the container of.
code »
goog.editor.plugins.BasicTextFormatter.convertParagraphToDiv_(paragraphopt_convertBrs)
Convert the given paragraph to being a div. This clobbers the passed-in node! This is only intended to be used in IE and Opera.
Arguments:
paragraph : Node
Paragragh to convert to a div.
opt_convertBrs : boolean=
If true, also convert BRs to divs.
code »
goog.editor.plugins.BasicTextFormatter.convertToRealExecCommand_(command) string
If this is a goog.editor.plugins.BasicTextFormatter.COMMAND, convert it to something that we can pass into execCommand, queryCommandState, etc. TODO(user): Consider doing away with the + and converter completely.
Arguments:
command : goog.editor.plugins.BasicTextFormatter.COMMAND | string
A command key.
Returns: string  The equivalent execCommand command.
code »
goog.editor.plugins.BasicTextFormatter.getNodeJustification_(element) string
Determines the justification for a given block-level element.
Arguments:
element : Element
The node to get justification for.
Returns: string  The justification for a given block-level node.
code »
goog.editor.plugins.BasicTextFormatter.getSelectionBlockState_(range) ?string
Get the toolbar state for the block-level elements in the given range.
Arguments:
range : goog.dom.AbstractRange
The range to get toolbar state for.
Returns: ?string  The selection block state.
code »

Directory plugins

File Reference