public class FormatBlockExecutable extends org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractBlockExecutable
cache, domUtilsrta| Constructor and Description |
|---|
FormatBlockExecutable(RichTextArea rta)
Create a new executable to be executed on the specified rich text area.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(com.google.gwt.dom.client.Node node,
int startOffset,
int endOffset,
String tagName) |
protected String |
getParameter(com.google.gwt.dom.client.Node node) |
static void |
replace(Element element,
String tagName)
Replaces the given element with an element with the specified tag name, moving all the child nodes to the new
element.
|
execute, execute, execute, getParameter, getParameter, wraphasValidSelection, isEnabled, isExecutedisSupportedpublic FormatBlockExecutable(RichTextArea rta)
rta - the execution targetprotected void execute(com.google.gwt.dom.client.Node node,
int startOffset,
int endOffset,
String tagName)
Formats as block the in-line neighborhood of the given node, using the specified block tag. If the specified tag name is empty then the block format is removed (in-line formatting will be used instead).
execute in class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractBlockExecutableAbstractBlockExecutable.execute(Node, int, int, String)protected String getParameter(com.google.gwt.dom.client.Node node)
Returns the tag used for block formatting. If the returned string is empty it means there's no block formatting (in other words, in-line formatting). If the returned string is null it means the given node doesn't support block formatting.
getParameter in class org.xwiki.gwt.user.client.ui.rta.cmd.internal.AbstractBlockExecutableAbstractBlockExecutable.getParameter(Node)Copyright © 2004–2016 XWiki. All rights reserved.