prosemirror-view 1.23.8 → 1.23.9
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 +6 -0
- package/dist/index.es.js +5 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -0
- package/src/viewdesc.js +4 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -428,6 +428,7 @@ function updateCursorWrapper(view) {
|
|
|
428
428
|
let dom = document.createElement("img")
|
|
429
429
|
dom.className = "ProseMirror-separator"
|
|
430
430
|
dom.setAttribute("mark-placeholder", "true")
|
|
431
|
+
dom.setAttribute("alt", "")
|
|
431
432
|
view.cursorWrapper = {dom, deco: Decoration.widget(view.state.selection.head, dom, {raw: true, marks: view.markCursor})}
|
|
432
433
|
} else {
|
|
433
434
|
view.cursorWrapper = null
|
package/src/viewdesc.js
CHANGED
|
@@ -1267,7 +1267,10 @@ class ViewTreeUpdater {
|
|
|
1267
1267
|
this.index++
|
|
1268
1268
|
} else {
|
|
1269
1269
|
let dom = document.createElement(nodeName)
|
|
1270
|
-
if (nodeName == "IMG")
|
|
1270
|
+
if (nodeName == "IMG") {
|
|
1271
|
+
dom.className = "ProseMirror-separator"
|
|
1272
|
+
dom.alt = ""
|
|
1273
|
+
}
|
|
1271
1274
|
if (nodeName == "BR") dom.className = "ProseMirror-trailingBreak"
|
|
1272
1275
|
this.top.children.splice(this.index++, 0, new TrailingHackViewDesc(this.top, nothing, dom, null))
|
|
1273
1276
|
this.changed = true
|