Ejemplo n.º 1
0
def getRange():
    jsRange = SelectionImpl.getJSRange(m_document, m_selection)
    if jsRange is None:
        return None
    res = Range(m_document, jsRange)
    res.ensureEndPoints()

    return res
Ejemplo n.º 2
0
def getRange():
    jsRange = SelectionImpl.getJSRange(m_document, m_selection)
    if jsRange is None:
        return None
    res = Range(m_document, jsRange)
    res.ensureEndPoints()

    return res