@mdxeditor/editor 3.39.0 → 3.39.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/plugins/core/index.js +10 -5
- package/package.json +1 -1
|
@@ -101,7 +101,7 @@ const mutableMarkdownSignal$ = Signal((r) => {
|
|
|
101
101
|
),
|
|
102
102
|
mutableMarkdownSignal$
|
|
103
103
|
);
|
|
104
|
-
});
|
|
104
|
+
}, true);
|
|
105
105
|
const importVisitors$ = Cell([]);
|
|
106
106
|
const usedLexicalNodes$ = Cell([]);
|
|
107
107
|
const syntaxExtensions$ = Cell([]);
|
|
@@ -475,10 +475,14 @@ const viewMode$ = Cell("rich-text", (r) => {
|
|
|
475
475
|
}
|
|
476
476
|
);
|
|
477
477
|
});
|
|
478
|
-
const markdownSourceEditorValue$ = Cell(
|
|
479
|
-
|
|
480
|
-
r
|
|
481
|
-
|
|
478
|
+
const markdownSourceEditorValue$ = Cell(
|
|
479
|
+
"",
|
|
480
|
+
(r) => {
|
|
481
|
+
r.link(markdown$, markdownSourceEditorValue$);
|
|
482
|
+
r.link(markdownSourceEditorValue$, markdownSignal$);
|
|
483
|
+
},
|
|
484
|
+
true
|
|
485
|
+
);
|
|
482
486
|
const activePlugins$ = Cell([]);
|
|
483
487
|
const addActivePlugin$ = Appender(activePlugins$);
|
|
484
488
|
const translation$ = Cell(() => {
|
|
@@ -491,6 +495,7 @@ const corePlugin = realmPlugin({
|
|
|
491
495
|
r.register(createRootEditorSubscription$);
|
|
492
496
|
r.register(createActiveEditorSubscription$);
|
|
493
497
|
r.register(markdownSignal$);
|
|
498
|
+
r.register(markdownSourceEditorValue$);
|
|
494
499
|
r.pubIn({
|
|
495
500
|
[initialMarkdown$]: (params == null ? void 0 : params.trim) ? initialMarkdown.trim() : initialMarkdown,
|
|
496
501
|
[iconComponentFor$]: params == null ? void 0 : params.iconComponentFor,
|