@fileverse-dev/ddoc 1.6.8 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.es.js
CHANGED
@@ -59489,11 +59489,11 @@ const Ple = kt.create({
|
|
59489
59489
|
}
|
59490
59490
|
},
|
59491
59491
|
autofocus: "start",
|
59492
|
-
|
59492
|
+
onTransaction: (D) => {
|
59493
59493
|
w != null && w.isEmpty || o == null || o(D.editor.getJSON());
|
59494
59494
|
},
|
59495
|
-
shouldRerenderOnTransaction:
|
59496
|
-
immediatelyRender: !
|
59495
|
+
shouldRerenderOnTransaction: !0,
|
59496
|
+
immediatelyRender: !1
|
59497
59497
|
},
|
59498
59498
|
[h]
|
59499
59499
|
), A = ft(() => {
|
@@ -59526,7 +59526,9 @@ const Ple = kt.create({
|
|
59526
59526
|
Ye(() => {
|
59527
59527
|
w == null || w.setEditable(!t);
|
59528
59528
|
}, [t, w]), Ye(() => {
|
59529
|
-
e && w && !m.current && (
|
59529
|
+
e && w && !m.current && (queueMicrotask(() => {
|
59530
|
+
w.commands.setContent(e);
|
59531
|
+
}), m.current = !0), setTimeout(() => {
|
59530
59532
|
m.current = !1;
|
59531
59533
|
});
|
59532
59534
|
}, [e, w]), Ye(() => {
|