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've just created blog post using CKEditor rich text editor. I have inserted underlined test in the body using the "underline" button. The underlining did display correctly in the node edit view.
Upon publishing, on the full node view, the underlining did not show. I used bolding also and it displayed correctly both on the edit and full node published view.
Bug?
Comments
Comment #1
TwoDThis is not a problem with Wysiwyg or the editor, but with your input format configuration. Wysiwyg runs no code during content rendering.
It's likely that you've got the "HTML Filter"-filter enabled in the current input format. You need to add the strong and u tags to its tag whitelist or it'll strip them during rendering.
If you want to add more styling like background/foreground color or font size, you can't use the "HTML Filter"-filter at all, as it always strips away the style attribute of all tags. I suggest disabling "HTML Filter" and installing/enabling WYSIWYG Filter instead. It takes some time to configure, and you'll explicitly have to list all the tags, attributes and style properties you want to allow to be rendered, but it's worth it.
Comment #3
ncbasecamp CreditAttribution: ncbasecamp commentedSpot on, CKEditor is omitting them because of your settings. If you are in Drupal 7, you can go here. /admin/config/content/formats/filtered_html