Skip to content

Commit

Permalink
don't explicitly disable contentEditable on atomic nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ahixon-atlassian committed Feb 15, 2019
1 parent da3d760 commit f48540c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viewdesc.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ class NodeViewDesc extends ViewDesc {
} else if (!dom) {
;({dom, contentDOM} = DOMSerializer.renderSpec(document, node.type.spec.toDOM(node)))
}
if (!contentDOM && !node.isText && dom.nodeName != "BR") { // Chrome gets confused by <br contenteditable=false>
if (!contentDOM && !node.isText && !node.isAtom && dom.nodeName != "BR") { // Chrome gets confused by <br contenteditable=false>
dom.contentEditable = false
if (node.type.spec.draggable) dom.draggable = true
}
Expand Down

0 comments on commit f48540c

Please sign in to comment.