vue-email icon indicating copy to clipboard operation
vue-email copied to clipboard

Question: render current email

Open scramatte opened this issue 2 years ago • 3 comments

Hi,

I'm building a drag and drop builder for vuemail. I'm using json and dynamic components for this. Proof of concept is working, but I need some mechanism to render the current displayed email.

How can I achieve this?

Regards

scramatte avatar Oct 21 '23 17:10 scramatte

The following code give the rendered email:

this.html = this.$refs.vuemail.$el.outerHTML;
<EHtml ref="vuemail">
    <EHead />
    ...
</EHtml>

I don't know if it exists another better approach

Regards

scramatte avatar Oct 21 '23 17:10 scramatte

Is there a reason why you can't use the useRender(...) ?

badalya1 avatar Feb 09 '24 14:02 badalya1

In my case, useRender(...) doesn't really returns a pure HTML like the documentation shows but an HTML which is using the VueMail Tags.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <EHtml lang="de"> <EHead> <EFont font-family="Main-Bold" fallback-font-family=" &#39;-apple-system,BlinkMacSystemFont,&#39;Segoe UI&#39;,Roboto,Oxygen-Sans,Ubuntu,Cantarell,&#39;Helvetica Neue&#39;,sans-serif&#39;" font-weight="400" font-style="normal"></EFont> </EHead> <EBody style="background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,&quot;Segoe UI&quot;,Roboto,Oxygen-Sans,Ubuntu,Cantarell,&quot;Helvetica Neue&quot;,sans-serif;"> <EContainer>

Balazs-D avatar Feb 28 '24 08:02 Balazs-D

we just merged a new project rewrite, please do check the docs and the updated logic https://vuemail.net/

Flowko avatar Jun 22 '24 18:06 Flowko