@capillarytech/creatives-library 3.0.28 → 3.0.29
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
|
@@ -18,7 +18,7 @@ import EmailPreviewV2 from '../EmailPreviewV2';
|
|
|
18
18
|
import messages from '../EmailPreviewV2/messages';
|
|
19
19
|
import './index.scss';
|
|
20
20
|
import mobileBody from '../../assets/mobile.png';
|
|
21
|
-
|
|
21
|
+
import { removeLinksFromHtmlContent } from './../../utils/common';
|
|
22
22
|
import {selectTemplateContent} from '../../containers/Templates/selectors';
|
|
23
23
|
import * as templateActions from '../../containers/Templates/actions';
|
|
24
24
|
|
|
@@ -67,6 +67,7 @@ class EmailMobilePreview extends React.Component {
|
|
|
67
67
|
enableShowAllDevices,
|
|
68
68
|
templateSubject,
|
|
69
69
|
} = this.props;
|
|
70
|
+
const copyContent = templateContent && removeLinksFromHtmlContent(templateContent);
|
|
70
71
|
const { showAllDevices } = this.state;
|
|
71
72
|
|
|
72
73
|
const emailSubjectLabel = templateSubject && (
|
|
@@ -97,7 +98,7 @@ class EmailMobilePreview extends React.Component {
|
|
|
97
98
|
<img src={mobileBody} alt="capillary" width="270" />
|
|
98
99
|
<div className={`${messageContainerName} ${emailSubjectLabel ? 'with-subject' : ''}`}>
|
|
99
100
|
{emailSubjectLabel}
|
|
100
|
-
<iframe srcDoc={
|
|
101
|
+
<iframe srcDoc={copyContent} {...deviceAspectRatio.mobile} >
|
|
101
102
|
<p><FormattedMessage {...messages.noIframeSupport}/></p>
|
|
102
103
|
</iframe>
|
|
103
104
|
</div>
|