1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 06:01:24 +02:00

fix inserted marks (#1338)

This commit is contained in:
Yifeng Wang
2017-10-30 12:03:01 -05:00
committed by Ian Storm Taylor
parent c397d0cdd7
commit 489658129d

View File

@@ -178,7 +178,7 @@ Changes.insertInline = (change, inline) => {
Changes.insertText = (change, text, marks) => {
const { value } = change
const { document, selection } = value
marks = marks || selection.marks
marks = marks || value.marks
change.insertTextAtRange(selection, text, marks)
// If the text was successfully inserted, and the selection had marks on it,