slate 0.142.0 → 0.142.1
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/dist/index.es.js +7 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/slate.js +7 -0
- package/dist/slate.min.js +1 -1
- package/dist/utils/get-insertion-point.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/slate.js
CHANGED
|
@@ -4157,6 +4157,13 @@
|
|
|
4157
4157
|
};
|
|
4158
4158
|
var getInsertionPoint = function getInsertionPoint(editor, point) {
|
|
4159
4159
|
var _inline$point, _inline$affinity;
|
|
4160
|
+
if (!Text.isText(Node.getIf(editor, point.path))) {
|
|
4161
|
+
return {
|
|
4162
|
+
point: point,
|
|
4163
|
+
affinity: false,
|
|
4164
|
+
inlineAffinity: null
|
|
4165
|
+
};
|
|
4166
|
+
}
|
|
4160
4167
|
var inline = inlineInsertionPoint(editor, point);
|
|
4161
4168
|
var result = (_inline$point = inline === null || inline === void 0 ? void 0 : inline.point) !== null && _inline$point !== void 0 ? _inline$point : point;
|
|
4162
4169
|
var affinity = inline !== null;
|