1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 14:11:35 +02:00

disable grammarly, closes #733

This commit is contained in:
Ian Storm Taylor
2017-04-24 12:51:54 -07:00
parent f31220c35b
commit a98b687aa5

View File

@@ -860,6 +860,10 @@ class Content extends React.Component {
style={style}
role={readOnly ? null : (role || 'textbox')}
tabIndex={tabIndex}
// COMPAT: The Grammarly Chrome extension works by changing the DOM out
// from under `contenteditable` elements, which leads to weird behaviors
// so we have to disable it like this. (2017/04/24)
data-gramm={false}
>
{children}
{this.props.children}