Issue #989πŸ’¬ AnsweredOpened Mar 29, 2018by tommedema1 reactions

Consecutive spans render whitespace differently in grapes' editor than in ordinary window

Quick answerby artf❀ 1

Yeah Tom thanks, I think a configurable option (eg. keepWhitespace?!?) might be a good solution

Read full answer below ↓

Question

I've spent the greater part of an afternoon trying to debug this. While I have reduced this to a small and easy to reproduce test case, I didn't find the root cause of this issue yet. Hopefully someone can help. Note the following HTML template: If you render this in a browser, it renders as: <img width="133" alt="screen shot 2018-03-29 at 1 36 34 pm" src="https://user-images.githubusercontent.com/331833/38112278-47c661fe-3356-11e8-8186-d48791b01af7.png"> Notice the whitespace between "Our solution" and "About". If you then use the exact HTML and style as Grapes's template, it will render as:...

Answers (3)

artfβ€’ Apr 5, 2018

Yeah Tom thanks, I think a configurable option (eg. keepWhitespace?!?) might be a good solution

tommedemaβ€’ Apr 2, 2018

Thanks @artf, I see. I would suggest removing this or at least making this configurable (defaulting to true then to prevent breaking changes). Would you accept a PR for this?

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 β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.