@capillarytech/creatives-library 8.0.343-alpha.2 → 8.0.343-alpha.3
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/package.json
CHANGED
|
@@ -698,9 +698,16 @@ export function SlideBoxContent(props) {
|
|
|
698
698
|
{(isEditEmailWithId || isEmailEditWithContent) && (
|
|
699
699
|
(() => {
|
|
700
700
|
const supportCKEditor = commonUtil.hasSupportCKEditor();
|
|
701
|
-
//
|
|
702
|
-
//
|
|
703
|
-
|
|
701
|
+
// BEE templates always use the <Email> component directly (the same
|
|
702
|
+
// path the SUPPORT_CK_EDITOR=true branch uses). EmailWrapper's
|
|
703
|
+
// useEmailWrapper strips templateData from props, so library-mode
|
|
704
|
+
// pencil-edit on a BEE template would never reach startTemplateCreation
|
|
705
|
+
// and getDetails?type=BEE_PLUGIN would never fire. Routing BEE
|
|
706
|
+
// templates through the direct <Email> path — which is already
|
|
707
|
+
// battle-tested for the CKEditor flow — sidesteps that entirely.
|
|
708
|
+
const isBEETemplate = templateData?.base?.is_drag_drop === true
|
|
709
|
+
|| templateData?.base?.is_drag_drop === 1;
|
|
710
|
+
if (supportCKEditor || isBEETemplate) {
|
|
704
711
|
return (
|
|
705
712
|
<Email
|
|
706
713
|
key="cretives-container-email-edit"
|