From 2accc752f12fa1ea48919b4e05d4fe4978e2f8e9 Mon Sep 17 00:00:00 2001 From: Adrian Tobey Date: Wed, 14 Aug 2024 10:05:18 -0400 Subject: [PATCH] use LinkPicker component --- assets/js/admin/emails/email-block-editor.js | 159 +++++++----------- .../js/admin/emails/email-block-editor.min.js | 6 +- 2 files changed, 66 insertions(+), 99 deletions(-) diff --git a/assets/js/admin/emails/email-block-editor.js b/assets/js/admin/emails/email-block-editor.js index dc0290f06..36ec2c34d 100644 --- a/assets/js/admin/emails/email-block-editor.js +++ b/assets/js/admin/emails/email-block-editor.js @@ -751,7 +751,7 @@ const pasteBlock = () => navigator.clipboard.readText().then(copiedText => { let blocks try { - blocks = parseBlocksFromContent(copiedText) + blocks = parseBlocksFromContent(copiedText) } catch (e) { dialog({ @@ -771,7 +771,7 @@ let newBlock - blocks.forEach( block => { + blocks.forEach(block => { newBlock = __replaceId(block) insertBlockAfter(newBlock, getActiveBlock().id) setActiveBlock(newBlock.id) @@ -4879,11 +4879,11 @@ const HTMLEditorNotice = () => `

${ __('You can now import HTML email templates from third party platforms! Simply copy and paste the HTML code into the editor.', - 'groundhogg-pro') }

+ 'groundhogg-pro') }

${ __('Here\'s what you need to know:', 'groundhogg-pro') }

${ __('The HTML you provide will not be validated or sanitized. So make sure you are using templates from trusted sources only.', - 'groundhogg-pro') } + 'groundhogg-pro') }

${ __('You will need to manually add any information required for compliance:', 'groundhogg-pro') }