@portabletext/editor 4.1.3 → 4.1.4
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/LICENSE +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
package/lib/index.js
CHANGED
|
@@ -8304,7 +8304,7 @@ function insertBlock(options) {
|
|
|
8304
8304
|
})).at(0) ?? [void 0, void 0];
|
|
8305
8305
|
if (!startBlock || !startBlockPath || !endBlock || !endBlockPath)
|
|
8306
8306
|
throw new Error("Unable to insert block without a start and end block");
|
|
8307
|
-
if (!
|
|
8307
|
+
if (!at) {
|
|
8308
8308
|
if (placement === "before")
|
|
8309
8309
|
Transforms.insertNodes(editor, [block], {
|
|
8310
8310
|
at: [0]
|