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:
@@ -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 })
|
||||
|
Reference in New Issue
Block a user