org.xwiki.gwt.user.client.ui.rta.cmd.internal
Class InsertHTMLExecutableImplIE
java.lang.Object
org.xwiki.gwt.user.client.ui.rta.cmd.internal.InsertHTMLExecutableImpl
org.xwiki.gwt.user.client.ui.rta.cmd.internal.InsertHTMLExecutableImplIE
public class InsertHTMLExecutableImplIE
- extends InsertHTMLExecutableImpl
Overwrites InsertHTMLExecutableImpl
with a custom implementation for Internet Explorer in order to ensure the
caret remains in the right position after the selected content is deleted. IE sometimes moves the caret inside a
sibling node when an entire node is deleted, instead of keeping the caret been the nodes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InsertHTMLExecutableImplIE
public InsertHTMLExecutableImplIE()
deleteSelection
protected Range deleteSelection(RichTextArea rta)
- Deletes the selected content within the given rich text area.
Ensures the caret remains in the right position after the selected content is deleted.
- Overrides:
deleteSelection
in class InsertHTMLExecutableImpl
- Parameters:
rta
- a rich text area
- Returns:
- the caret after the selection has been deleted
- See Also:
InsertHTMLExecutable#deleteSelection(RichTextArea)