prosemirror-view 1.41.2 → 1.41.3
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.cjs +2 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
- package/src/domchange.ts +2 -0
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -4750,6 +4750,8 @@ function readDOMChange(view, from, to, typeOver, addedNodes) {
|
|
|
4750
4750
|
if (!view.someProp("handleTextInput", function (f) {
|
|
4751
4751
|
return f(view, chFrom, chTo, text, deflt);
|
|
4752
4752
|
})) view.dispatch(deflt());
|
|
4753
|
+
} else {
|
|
4754
|
+
view.dispatch(mkTr());
|
|
4753
4755
|
}
|
|
4754
4756
|
} else {
|
|
4755
4757
|
view.dispatch(mkTr());
|
package/dist/index.js
CHANGED
|
@@ -5121,6 +5121,9 @@ function readDOMChange(view, from, to, typeOver, addedNodes) {
|
|
|
5121
5121
|
if (!view.someProp("handleTextInput", f => f(view, chFrom, chTo, text, deflt)))
|
|
5122
5122
|
view.dispatch(deflt());
|
|
5123
5123
|
}
|
|
5124
|
+
else {
|
|
5125
|
+
view.dispatch(mkTr());
|
|
5126
|
+
}
|
|
5124
5127
|
}
|
|
5125
5128
|
else {
|
|
5126
5129
|
view.dispatch(mkTr());
|
package/package.json
CHANGED
package/src/domchange.ts
CHANGED
|
@@ -268,6 +268,8 @@ export function readDOMChange(view: EditorView, from: number, to: number, typeOv
|
|
|
268
268
|
let deflt = () => mkTr(view.state.tr.insertText(text, chFrom, chTo))
|
|
269
269
|
if (!view.someProp("handleTextInput", f => f(view, chFrom, chTo, text, deflt)))
|
|
270
270
|
view.dispatch(deflt())
|
|
271
|
+
} else {
|
|
272
|
+
view.dispatch(mkTr())
|
|
271
273
|
}
|
|
272
274
|
} else {
|
|
273
275
|
view.dispatch(mkTr())
|