mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 10:29:48 +02:00
cleanup
This commit is contained in:
@@ -445,12 +445,7 @@ class State extends Record(DEFAULTS) {
|
|||||||
.moveForward(lastText.length)
|
.moveForward(lastText.length)
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (lastInline || startInline) {
|
else if (nextBlock != startBlock || lastInline || startInline) {
|
||||||
const text = document.getPreviousText(nextText)
|
|
||||||
after = selection.moveToEndOf(text)
|
|
||||||
}
|
|
||||||
|
|
||||||
else if (nextBlock != startBlock) {
|
|
||||||
const text = document.getPreviousText(nextText)
|
const text = document.getPreviousText(nextText)
|
||||||
after = selection
|
after = selection
|
||||||
.moveToStartOf(text)
|
.moveToStartOf(text)
|
||||||
|
Reference in New Issue
Block a user