Jump to content

Email templates and HTML


Blesta Addons

Recommended Posts

not sure  if this a bug or normal case . i have a plugin that inject a email template content . the HTML is like this

	<div itemscope itemtype='http://schema.org/EmailMessage'>
		<div itemprop='action' itemscope itemtype='http://schema.org/ViewAction'>
			<link itemprop='url' href='https://{admin_url}/billing'></link>
			<meta itemprop='name' content='View Billing'></meta>
		</div>
		<meta itemprop='description' content='View Billing on Dashboard'></meta>
	</div>

in email template i see the fallowing code in open source

 

<div itemscope="" itemtype="http://schema.org/EmailMessage">
	<div itemprop="action" itemscope="" itemtype="http://schema.org/ViewAction">
		 </div>
</div>
<p>
	 </p>
<p>
	<link href="https://{admin_url}/billing/" itemprop="url" />
</p>
<p>
	 </p>
<p>
	<meta content="View Billing" itemprop="name" />
</p>
<p>
	 </p>
<p>
	<meta content="View Billing on Dashboard" itemprop="description" />
</p>

the same coe when i add it to any other template email it converted to the second one .

note i add code in source code version not as a plain text

 

i don't know if MCEeditor convert it to this or is store withe this code .

is this a normal case?

 

Link to comment
Share on other sites

3 hours ago, AnthonyL said:

ya, i think my dev ran into this same issue. He had to create the html templates directly in the sql database. Not a work around i was very happy about 

i have not take time to check the database and this was stored, but if you edit the template i think it will be saved with the new html tags .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...