Skip to content

Commit 14f21f7

Browse files
committed
MC-3442: Directive link displays on PageBuilder stage
Debounce save to data store until TinyMCE's save lifecycle has been finalized
1 parent 41fbde6 commit 14f21f7

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type

1 file changed

+2
-1
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/wysiwyg.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

66
import $ from "jquery";
7+
import _ from "underscore";
78
import WysiwygSetup from "mage/adminhtml/wysiwyg/tiny_mce/setup";
89
import events from "Magento_PageBuilder/js/events";
910

@@ -57,7 +58,7 @@ export default class Wysiwyg {
5758
public onEdited(callback: () => void) {
5859
this.wysiwygAdapter.eventBus.attachEventHandler(
5960
"tinymceChange",
60-
callback,
61+
_.debounce(callback, 100),
6162
);
6263
}
6364

0 commit comments

Comments
 (0)