org.xwiki.gwt.wysiwyg.client.plugin.readonly
Class ReadOnlyUtils

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.readonly.ReadOnlyUtils

public class ReadOnlyUtils
extends Object

Utility methods concerning read-only regions inside the rich text area.

Version:
$Id: 6eeebf92fa4de52d6230729f2b7b070231660934 $

Constructor Summary
ReadOnlyUtils()
           
 
Method Summary
 Element getClosestReadOnlyAncestor(com.google.gwt.dom.client.Node node)
           
 boolean isRangeBoundaryInsideReadOnlyElement(Range range)
           
 boolean isSelectionBoundaryInsideReadOnlyElement(Document document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadOnlyUtils

public ReadOnlyUtils()
Method Detail

getClosestReadOnlyAncestor

public Element getClosestReadOnlyAncestor(com.google.gwt.dom.client.Node node)
Parameters:
node - a DOM node
Returns:
the closest ancestor of the given node that is marked as read-only

isSelectionBoundaryInsideReadOnlyElement

public boolean isSelectionBoundaryInsideReadOnlyElement(Document document)
Parameters:
document - a DOM document
Returns:
true if the selection starts or ends inside a read-only element

isRangeBoundaryInsideReadOnlyElement

public boolean isRangeBoundaryInsideReadOnlyElement(Range range)
Parameters:
range - a DOM range
Returns:
true if the range starts or ends inside a read-only element


Copyright © 2004–2015 XWiki. All rights reserved.