public class IELinePlugin extends LinePlugin implements InnerHTMLListener
LinePlugin.BR, CLASS_NAME, domUtils, LI, LINE_BREAK, RESET, SPACER, SUBMIT, TD, TH| Constructor and Description |
|---|
IELinePlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected void |
ensureLineBreakIsVisible(com.google.gwt.dom.client.Node lineBreak,
com.google.gwt.dom.client.Node container)
Ensures that the line created by inserting a line break is visible.
|
void |
init(RichTextArea textArea,
Config config) |
protected void |
insertEmptyLine(com.google.gwt.dom.client.Node container,
Range caret)
Inserts an empty line before the block containing the caret.
|
void |
onInnerHTMLChange(Element element) |
adjustLineBreak, copyLineStyle, handleRepeatableKey, insertLineBreak, isAfterLineBreak, isAtStart, isEmptyLine, isLineBreak, markInitialLineBreaks, markSpacers, needsSpace, onBackspace, onBeforeCommand, onCommand, onEnter, onEnterParagraph, onReset, replaceEmptyLinesWithParagraphs, splitLine, unMarkSpacersgetConfig, getTextArea, getUIExtensionList, getUIExtensions, saveRegistration, saveRegistrationspublic void init(RichTextArea textArea, Config config)
init in interface Plugininit in class LinePluginpublic void destroy()
destroy in interface Plugindestroy in class LinePluginprotected void insertEmptyLine(com.google.gwt.dom.client.Node container,
Range caret)
If the caret is inside an empty block level container and we insert an empty line before then the caret doesn't remain in its place. We have to reset the caret.
insertEmptyLine in class LinePlugincontainer - a block-level element containing the caretcaret - the place where to insert the empty lineLinePlugin.insertEmptyLine(Node, Range)public void onInnerHTMLChange(Element element)
onInnerHTMLChange in interface InnerHTMLListenerprotected void ensureLineBreakIsVisible(com.google.gwt.dom.client.Node lineBreak,
com.google.gwt.dom.client.Node container)
LinePluginensureLineBreakIsVisible in class LinePluginlineBreak - the line break that was insertedcontainer - the container (e.g. the paragraph) where the line break was insertedCopyright © 2004–2017 XWiki. All rights reserved.