prosemirror-view
Advanced tools
Comparing version
@@ -0,1 +1,7 @@ | ||
## 1.16.2 (2020-11-18) | ||
### Bug fixes | ||
Fix a bug where overlapping inline decorations would get drawn incorrectly (and even corrupt the drawing of unrelated content). | ||
## 1.16.1 (2020-10-26) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-view", | ||
"version": "1.16.1", | ||
"version": "1.16.2", | ||
"description": "ProseMirror's view component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -913,6 +913,6 @@ import {DOMSerializer, Fragment, Mark} from "prosemirror-model" | ||
for (let i = 0; i < outerDeco.length; i++) { | ||
let attrs = outerDeco[i].type.attrs, cur = top | ||
let attrs = outerDeco[i].type.attrs | ||
if (!attrs) continue | ||
if (attrs.nodeName) | ||
result.push(cur = new OuterDecoLevel(attrs.nodeName)) | ||
result.push(top = new OuterDecoLevel(attrs.nodeName)) | ||
@@ -923,6 +923,6 @@ for (let name in attrs) { | ||
if (needsWrap && result.length == 1) | ||
result.push(cur = top = new OuterDecoLevel(node.isInline ? "span" : "div")) | ||
if (name == "class") cur.class = (cur.class ? cur.class + " " : "") + val | ||
else if (name == "style") cur.style = (cur.style ? cur.style + ";" : "") + val | ||
else if (name != "nodeName") cur[name] = val | ||
result.push(top = new OuterDecoLevel(node.isInline ? "span" : "div")) | ||
if (name == "class") top.class = (top.class ? top.class + " " : "") + val | ||
else if (name == "style") top.style = (top.style ? top.style + ";" : "") + val | ||
else if (name != "nodeName") top[name] = val | ||
} | ||
@@ -929,0 +929,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1482806
0