src/model/node.js
// between the two given positions.
between the two given positions.
between the two given positions .
rangeHasMark(from, to, type) {
    let found = false
    this.nodesBetween(from, to, node => {
      if (type.isInSet(node.marks)) found = true
    })
    return found
  }
rangeHasMark ( from , to , type ) { let found = false this . nodesBetween ( from , to , node => { if ( type . isInSet ( node . marks ) ) found = true } ) return found }
between the two given positions.
between the two given positions .