Hi All,

I have CKEditor installed on my Drupal 7 website. It works fine, but if I have a
tag inserted into the page, when one of my team goes to edit the node, CKEditor is removing the
tag.

Is this a bug or a setting somewhere on CKEditor to recognise the tags?

Comments

wayne.gormont’s picture

I'm having the same problem. Any solutions?

cmckay’s picture

Hey Wayne,

I ran into this problem yesterday also. It turns out the solution is to add the

tag to the list of allowed HTML tags in your Text Formats options (Configuration>Text Formats>.

Let me know if you get it working.

Cheers!

Geijutsuka’s picture

I have a text format that doesn't have any HTML restrictions, and CKEditor eats up the <br />s after saving the node and then editing again. :/

Geijutsuka’s picture

Nevermind, I had the "Limit allowed HTML tags" unchecked in the text format, but checked in the CKEditor settings under security, thus forcing CKEditor to look for a list of HTML tags and grabbing the list in the "Filtered HTML" text format (which listed <br>, but not <br />).
Oops.