GetmeUK / ContentTools

A JS library for building WYSIWYG editors for HTML content.
http://getcontenttools.com
MIT License
3.95k stars 395 forks source link

Need help in ContentTools (CT is adding <p> automatically between every element while editing which causing problem) #438

Closed rohitcoder closed 6 years ago

rohitcoder commented 6 years ago

I used this data-editable as attribute in my elements its not working properly. I mean while editing its adding <p> automatically inside that element For example this is my initialization code

<h4 data-editable data-name="article">This is my text</h4>

Now while editing its something like this

<h4 data-editable="" data-name="article">This is my text<p class="ce-element--empty ce-element ce-element--type-text"></p></h4> image

but i think it should be like this according to getcontenttools.com/demo

<h4 data-editable="" class="ce-element--empty ce-element ce-element--type-text" data-name="article">This is my text</h4> image