|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin
org.xwiki.gwt.wysiwyg.client.plugin.line.LinePlugin
org.xwiki.gwt.wysiwyg.client.plugin.line.MozillaLinePlugin
public class MozillaLinePlugin
Mozilla specific implementation of the LinePlugin.
| Field Summary |
|---|
| Fields inherited from class org.xwiki.gwt.wysiwyg.client.plugin.line.LinePlugin |
|---|
BR, CLASS_NAME, domUtils, LI, LINE_BREAK, RESET, SPACER, SUBMIT, TD, TH |
| Constructor Summary | |
|---|---|
MozillaLinePlugin()
|
|
| Method Summary | |
|---|---|
protected void |
insertLineBreak(com.google.gwt.dom.client.Node container,
Range caret)
Inserts a line break at the specified position in the document. We overwrite in order to fix a Mozilla bug which causes the caret to be rendered on the same line after you press Enter, if the new line doesn't have any visible contents. |
protected void |
splitLine(com.google.gwt.dom.client.Node container,
Range caret)
Splits a line after a line break. |
| Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.line.LinePlugin |
|---|
adjustLineBreak, copyLineStyle, destroy, handleRepeatableKey, init, insertEmptyLine, isAfterLineBreak, isAtStart, isEmptyLine, isLineBreak, markInitialLineBreaks, markSpacers, needsSpace, onBackspace, onBeforeCommand, onCommand, onEnter, onEnterParagraph, onKeyDown, onKeyPress, onKeyUp, onReset, replaceEmptyLinesWithParagraphs, unMarkSpacers |
| Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractPlugin |
|---|
getConfig, getTextArea, getUIExtensionList, getUIExtensions, saveRegistration, saveRegistrations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MozillaLinePlugin()
| Method Detail |
|---|
protected void insertLineBreak(com.google.gwt.dom.client.Node container,
Range caret)
insertLineBreak in class LinePlugincontainer - a block-level element containing the caretcaret - the place where to insert the line breakLinePlugin.insertLineBreak(Node, Range)
protected void splitLine(com.google.gwt.dom.client.Node container,
Range caret)
We overwrite in order to fix a Firefox 3.6 bug which causes the caret to be rendered at the start of the document when we split a line at its end. It seems Firefox 3.6 doesn't like the fact that the caret ends up inside an empty text node when the line is split at the end. This wan't the case with older versions of Firefox.
splitLine in class LinePlugincontainer - a block-level element containing the caretcaret - the position of the caret in the documentLinePlugin.splitLine(Node, Range)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||