Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using the Wysiwyg module with TinyMCE Editor 3.5.1.1.
I need to paste some html into a blog post and it has inline <style></style>
tags. These are being stripped as soon as I enter them in the HTML source editor and click "update".
I'm using the Full HTML text format so "Limit Allowed HTML Tags" is not ticked and I tried disabling any HTML cleanup options temporarily to see if faulty HTML was the cause but no luck.
Comments
Comment #2
TwoDI think TinyMCE is stripping out style tags by default.
You'll have to add style tags to be valid children of the body tag: