Skip to content
This repository was archived by the owner on May 31, 2020. It is now read-only.

Commit 9e5e261

Browse files
committed
fix atomic-block
1 parent 5f3d47e commit 9e5e261

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/atomic-block/src/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,7 @@ class AtomicBlockPlugin extends Component<Props, State> {
176176
}
177177

178178
blockRendererFn = block => {
179-
const {
180-
type,
181-
editorProps: { readOnly },
182-
editorState,
183-
} = this.props
179+
const { type, editorState } = this.props
184180

185181
const content = editorState.getCurrentContent()
186182

@@ -195,7 +191,7 @@ class AtomicBlockPlugin extends Component<Props, State> {
195191
if (entityType.toLowerCase() === type.toLowerCase()) {
196192
return {
197193
component: this.renderChildren,
198-
editable: readOnly !== true,
194+
editable: false,
199195
props: data,
200196
}
201197
}

0 commit comments

Comments
 (0)