Issue #2314💬 AnsweredOpened October 7, 2019by alimajedcme0 reactions

Grapesjs does not handle correctly outlook specific HTML

快速解答by artf

Probably you would need to create a custom component to handle such a case

Read full answer below ↓

Question

Hello all,

I have a template that includes outlook specific HTML as shown below: <!--[if (gte mso 9)|(IE)]><table width="100%" border="0" cellpadding="0" cellspacing="0"><![endif]-->

When I import this HTML, and try to add a block above or below this specific location in the DOM, the green line showing where the component will be dropped in the canvas won't be displayed correctly, and will become much smaller than expected, as show below <img width="1232" alt="Screen Shot 2019-10-07 at 6 48 18 PM" src="https://user-images.githubusercontent.com/51313079/66327476-9130a900-e933-11e9-901e-eec3ddebef46.png">

Any idea why this is happening? I think it is because the comment tagname does not have a width but is there any workaround for this?

Thank you all.

Answers (1)

artfOctober 16, 2019

Probably you would need to create a custom component to handle such a case

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.