1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-21 06:31:28 +02:00

Merge branch 'master' of github.com:ianstormtaylor/slate

This commit is contained in:
Ian Storm Taylor
2017-04-28 12:56:50 -07:00
2 changed files with 2 additions and 0 deletions

View File

@@ -880,6 +880,7 @@ class Content extends React.Component {
data-slate-editor data-slate-editor
key={this.tmp.forces} key={this.tmp.forces}
ref={this.ref} ref={this.ref}
data-key={document.key}
contentEditable={!readOnly} contentEditable={!readOnly}
suppressContentEditableWarning suppressContentEditableWarning
className={className} className={className}

View File

@@ -59,6 +59,7 @@ function clean(html) {
$.root().children().removeAttr('autocorrect') $.root().children().removeAttr('autocorrect')
$.root().children().removeAttr('spellcheck') $.root().children().removeAttr('spellcheck')
$.root().children().removeAttr('style') $.root().children().removeAttr('style')
$.root().children().removeAttr('data-gramm')
return $.html() return $.html()
} }