我有一个针对mailchimp的自定义html通讯。我在任何地方都创建了可编辑的部分,它工作得很好。 我还制作了一个自定义按钮,我想使其 href 属性可编辑。当我在a
标签本身上添加mc:edit
时,我只能编辑a
标签的文本内容。所以我在容器td
上给出mc:edit
,以便我可以编辑 a 标签本身。这样我就可以编辑按钮,但我的客户必须单击编辑器<>
登录并手动编辑 href 属性。这不是我想要的。我希望他们填写一些类似输入的东西,他们所要做的就是将 url 粘贴到那里。有没有办法实现这一目标?
<a href="EDITABLE_URL" style="display: block; width: 114px; margin: 0 auto; color:white; text-align:center; text-decoration: none; text-transform: none; cursor: pointer;" target="_blank">Inscription</a>
您需要获取粘贴的 url,然后将 html 传递回表单。例如:
<span mc:edit="chat_button_"></span>
将替换为
<a class="mcnButton " title="Chat Now" href="destination" target="_blank" style="font-weight: normal;letter-spacing: normal;line-height: 100%;text-align: center;text-decoration: none;color: #FFFFFF;">Chat Now</a>