Because it is random! I have just restored tiny_mce.js and on the top TV text it’s normal and the bottom it’s <p><p></p></p>
Tiny is getting me crazy with so many bugs!
EDIT:
Okay, here’s the situation:
- On my tiny_mce.js forced_root_block is set to false
- I have installed phx:striptags and I’m removing <div> tags since I was getting additional <div> tags
- The way I’m using the phx snippet is:
<p>[*orange:striptags='<div>'*]</p>
with `<div>` it doesn’t work and without the snippet it adds additional <p> instead of <div> (even with forced_root_block set to false!)
All this is weird to me.. it makes on sense at all! Initially, it was adding <p> tags and I set forced_root_block to false and it really removed <p> tags but than <div> tags appeared. To remove <div> tags I used the phx:striptags function and it wasn’t working.. I than changed `<div>` to ’<div>’ and the additional <div> tags are now gone.
So it’s all working for now but making no sense... because if I remove the phx:striptags the initial issue (additional <p> tags) appears again. The behaviour is a bit random and I’m afraid of that.
Best regards and thank you for all your support!