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/dist/index.js
CHANGED
|
@@ -1928,7 +1928,10 @@ ViewTreeUpdater.prototype.addHackNode = function addHackNode (nodeName) {
|
|
|
1928
1928
|
this.index++;
|
|
1929
1929
|
} else {
|
|
1930
1930
|
var dom = document.createElement(nodeName);
|
|
1931
|
-
if (nodeName == "IMG") {
|
|
1931
|
+
if (nodeName == "IMG") {
|
|
1932
|
+
dom.className = "ProseMirror-separator";
|
|
1933
|
+
dom.alt = "";
|
|
1934
|
+
}
|
|
1932
1935
|
if (nodeName == "BR") { dom.className = "ProseMirror-trailingBreak"; }
|
|
1933
1936
|
this.top.children.splice(this.index++, 0, new TrailingHackViewDesc(this.top, nothing, dom, null));
|
|
1934
1937
|
this.changed = true;
|
|
@@ -5288,6 +5291,7 @@ function updateCursorWrapper(view) {
|
|
|
5288
5291
|
var dom = document.createElement("img");
|
|
5289
5292
|
dom.className = "ProseMirror-separator";
|
|
5290
5293
|
dom.setAttribute("mark-placeholder", "true");
|
|
5294
|
+
dom.setAttribute("alt", "");
|
|
5291
5295
|
view.cursorWrapper = {dom: dom, deco: Decoration.widget(view.state.selection.head, dom, {raw: true, marks: view.markCursor})};
|
|
5292
5296
|
} else {
|
|
5293
5297
|
view.cursorWrapper = null;
|