1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 19:01:54 +02:00

fix to account for renderDecorations being undefined

This commit is contained in:
Ian Storm Taylor
2016-07-22 12:37:21 -07:00
parent 3bc0664852
commit e8fdacd340

View File

@@ -289,6 +289,8 @@ class Editor extends React.Component {
const characters = plugin.renderDecorations(text, state, this)
if (characters) return characters
}
return text.characters
})
state = state.merge({ document })