prosemirror-view 1.20.3 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/index.es.js +4 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/browser.js +1 -1
- package/src/index.js +3 -0
package/dist/index.js
CHANGED
|
@@ -13,7 +13,6 @@ if (typeof navigator != "undefined" && typeof document != "undefined") {
|
|
|
13
13
|
var ie_upto10 = /MSIE \d/.test(navigator.userAgent);
|
|
14
14
|
var ie_11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
15
15
|
|
|
16
|
-
result.mac = /Mac/.test(navigator.platform);
|
|
17
16
|
var ie = result.ie = !!(ie_upto10 || ie_11up || ie_edge);
|
|
18
17
|
result.ie_version = ie_upto10 ? document.documentMode || 6 : ie_11up ? +ie_11up[1] : ie_edge ? +ie_edge[1] : null;
|
|
19
18
|
result.gecko = !ie && /gecko\/(\d+)/i.test(navigator.userAgent);
|
|
@@ -24,6 +23,7 @@ if (typeof navigator != "undefined" && typeof document != "undefined") {
|
|
|
24
23
|
// Is true for both iOS and iPadOS for convenience
|
|
25
24
|
result.safari = !ie && /Apple Computer/.test(navigator.vendor);
|
|
26
25
|
result.ios = result.safari && (/Mobile\/\w+/.test(navigator.userAgent) || navigator.maxTouchPoints > 2);
|
|
26
|
+
result.mac = result.ios || /Mac/.test(navigator.platform);
|
|
27
27
|
result.android = /Android \d/.test(navigator.userAgent);
|
|
28
28
|
result.webkit = "webkitFontSmoothing" in document.documentElement.style;
|
|
29
29
|
result.webkit_version = result.webkit && +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1];
|
|
@@ -5189,6 +5189,9 @@ function computeDocDeco(view) {
|
|
|
5189
5189
|
if (value) { for (var attr in value) {
|
|
5190
5190
|
if (attr == "class")
|
|
5191
5191
|
{ attrs.class += " " + value[attr]; }
|
|
5192
|
+
if (attr == "style") {
|
|
5193
|
+
attrs.style = (attrs.style ? attrs.style + ";" : "") + value[attr];
|
|
5194
|
+
}
|
|
5192
5195
|
else if (!attrs[attr] && attr != "contenteditable" && attr != "nodeName")
|
|
5193
5196
|
{ attrs[attr] = String(value[attr]); }
|
|
5194
5197
|
} }
|