prosemirror-old
Advanced tools
Comparing version 0.10.2 to 0.10.3
@@ -53,4 +53,7 @@ "use strict"; | ||
dom.setAttribute("pm-size", size); | ||
if (ranges.current.length) dom.className = ranges.current.join(" "); | ||
ranges.current.forEach(function (className) { | ||
return dom.classList.add(className); | ||
}); | ||
if (!fragment && (nextCut > -1 || ranges.element)) fragment = document.createDocumentFragment(); | ||
@@ -57,0 +60,0 @@ if (ranges.element) fragment.appendChild(elt("span", { contenteditable: false, "pm-ignore": true }, ranges.element)); |
{ | ||
"name": "prosemirror-old", | ||
"version": "0.10.2", | ||
"version": "0.10.3", | ||
"description": "Well-defined WYSIWYG editor (old version)", | ||
@@ -5,0 +5,0 @@ "main": "dist/edit/index.js", |
@@ -46,5 +46,5 @@ const {elt} = require("../util/dom") | ||
dom.setAttribute("pm-size", size) | ||
if (ranges.current.length) | ||
dom.className = ranges.current.join(" ") | ||
ranges.current.forEach(className => dom.classList.add(className)) | ||
if (!fragment && (nextCut > -1 || ranges.element)) | ||
@@ -51,0 +51,0 @@ fragment = document.createDocumentFragment() |
@@ -361,3 +361,3 @@ require("./css") | ||
// IE does not support calling contains() on document | ||
let root = this.root.body || this.root; | ||
let root = this.root.body || this.root | ||
if (!root.contains(this.wrapper) || !this.operation) return false | ||
@@ -364,0 +364,0 @@ this.on.flushing.dispatch() |
1310043
31071