Skip to content

Commit

Permalink
Don't set contentEditable on nodeview if it's already been defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ahixon-atlassian committed Feb 26, 2019
1 parent 0ac928f commit 56c45e1
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 @@ -540,7 +540,7 @@ class NodeViewDesc extends ViewDesc {
;({dom, contentDOM} = DOMSerializer.renderSpec(document, node.type.spec.toDOM(node)))
}
if (!contentDOM && !node.isText && dom.nodeName != "BR") { // Chrome gets confused by <br contenteditable=false>
dom.contentEditable = false
if (!dom.hasAttribute('contentEditable')) dom.contentEditable = false
if (node.type.spec.draggable) dom.draggable = true
}

Expand Down

0 comments on commit 56c45e1

Please sign in to comment.