org.xwiki.gwt.user.client.ui.rta.cmd.internal
Class InsertHTMLExecutableImplIE

java.lang.Object
  extended by org.xwiki.gwt.user.client.ui.rta.cmd.internal.InsertHTMLExecutableImpl
      extended by 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.


Constructor Summary
InsertHTMLExecutableImplIE()
           
 
Method Summary
protected  Range deleteSelection(RichTextArea rta)
          Deletes the selected content within the given rich text area.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertHTMLExecutableImplIE

public InsertHTMLExecutableImplIE()
Method Detail

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)