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