froala / wysiwyg-rails

Ruby gem for Froala jQuery WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
MIT License
465 stars 102 forks source link

Placeholder is displayed above content when content is wrapped in <p> tag #47

Closed macmartine closed 7 years ago

macmartine commented 7 years ago

The editor automatically wraps entered content in a<p>.

We then save that content. When we reload the page the placeholder is still displayed. Here's the most basic haml code that shows the issue:

This works as expected, placeholder is not shown

%p#does-not-show-placeholder
  Hi, I'm Froala

This does not work as expected, it shows placeholder as well as the content. Placeholder should no be shown.

%p#does-show-placeholder-but-should-not
  %p Hi, I'm Froala
macmartine commented 7 years ago

Nevermind, the issue was I'm using haml, and it bumps nested

tags out, so they are actually not nested when rendered.