mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-21 14:41:23 +02:00
Remove unused startOffset
This commit is contained in:
@@ -944,7 +944,7 @@ Changes.setBlockAtRange = (change, range, properties, options = {}) => {
|
|||||||
const blocks = document.getBlocksAtRange(range)
|
const blocks = document.getBlocksAtRange(range)
|
||||||
|
|
||||||
|
|
||||||
let { startKey, startOffset, endKey, endOffset } = range
|
let { startKey, endKey, endOffset } = range
|
||||||
let isStartVoid = document.hasVoidParent(startKey)
|
let isStartVoid = document.hasVoidParent(startKey)
|
||||||
let isEndVoid = document.hasVoidParent(endKey)
|
let isEndVoid = document.hasVoidParent(endKey)
|
||||||
let startBlock = document.getClosestBlock(startKey)
|
let startBlock = document.getClosestBlock(startKey)
|
||||||
@@ -954,7 +954,6 @@ Changes.setBlockAtRange = (change, range, properties, options = {}) => {
|
|||||||
// selection extends into the start of the end node, we actually want to
|
// selection extends into the start of the end node, we actually want to
|
||||||
// ignore that for UX reasons.
|
// ignore that for UX reasons.
|
||||||
const isHanging = (
|
const isHanging = (
|
||||||
startOffset == 0 &&
|
|
||||||
endOffset == 0 &&
|
endOffset == 0 &&
|
||||||
isStartVoid == false &&
|
isStartVoid == false &&
|
||||||
startKey == startBlock.getFirstText().key &&
|
startKey == startBlock.getFirstText().key &&
|
||||||
|
Reference in New Issue
Block a user