easy-email-extensions 3.2.1-alpha.0 → 3.2.1-alpha.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/lib/index2.js CHANGED
@@ -42798,7 +42798,7 @@ function FontSize(props) {
42798
42798
  }));
42799
42799
  }
42800
42800
  function Tools(props) {
42801
- const { mergeTags: mergeTags2 } = useEditorProps();
42801
+ const { mergeTags: mergeTags2, enabledMergeTagsBadge } = useEditorProps();
42802
42802
  const { focusBlockNode } = useFocusBlockLayout();
42803
42803
  const { selectionRange, restoreRange, setRangeByElement } = useSelectionRange();
42804
42804
  const execCommand = (cmd, val) => {
@@ -42834,7 +42834,10 @@ function Tools(props) {
42834
42834
  link.style.textDecoration = linkData.underline ? "underline" : "none";
42835
42835
  link.setAttribute("href", linkData.link);
42836
42836
  } else if (cmd === "insertHTML") {
42837
- const newContent = MergeTagBadge$1.transform(val, uuid2);
42837
+ let newContent = val;
42838
+ if (enabledMergeTagsBadge) {
42839
+ newContent = MergeTagBadge$1.transform(val, uuid2);
42840
+ }
42838
42841
  document.execCommand(cmd, false, newContent);
42839
42842
  const insertMergeTagEle = getShadowRoot().getElementById(uuid2);
42840
42843
  if (insertMergeTagEle) {