@mdxeditor/editor 3.0.4 → 3.0.5
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.
|
@@ -522,10 +522,8 @@ const corePlugin = realmPlugin({
|
|
|
522
522
|
theme: lexicalTheme
|
|
523
523
|
});
|
|
524
524
|
newEditor.update(() => {
|
|
525
|
-
const markdown = params == null ? void 0 : params.initialMarkdown.trim();
|
|
526
|
-
|
|
527
|
-
tryImportingMarkdown(r, $getRoot(), markdown);
|
|
528
|
-
}
|
|
525
|
+
const markdown = (params == null ? void 0 : params.initialMarkdown.trim()) ?? "";
|
|
526
|
+
tryImportingMarkdown(r, $getRoot(), markdown);
|
|
529
527
|
const autoFocusValue = params == null ? void 0 : params.autoFocus;
|
|
530
528
|
if (autoFocusValue) {
|
|
531
529
|
if (autoFocusValue === true) {
|