1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-21 14:41:23 +02:00

Add render event for plugins (#2834)

This commit is contained in:
Sunny Hirai
2019-05-27 18:34:00 -07:00
committed by GitHub
parent 2ec21e7fc4
commit 2634c58e32

View File

@@ -514,6 +514,8 @@ class Content extends React.Component {
debug('render', { props })
this.props.onEvent('onRender', {})
const data = {
[DATA_ATTRS.EDITOR]: true,
[DATA_ATTRS.KEY]: document.key,