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:
committed by
Ian Storm Taylor
parent
c397d0cdd7
commit
489658129d
@@ -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,
|
||||
|
Reference in New Issue
Block a user