mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-21 22:45:18 +02:00
disable grammarly, closes #733
This commit is contained in:
@@ -860,6 +860,10 @@ class Content extends React.Component {
|
|||||||
style={style}
|
style={style}
|
||||||
role={readOnly ? null : (role || 'textbox')}
|
role={readOnly ? null : (role || 'textbox')}
|
||||||
tabIndex={tabIndex}
|
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}
|
{children}
|
||||||
{this.props.children}
|
{this.props.children}
|
||||||
|
Reference in New Issue
Block a user