When adding a hr tag to a span element, using the source view of the editor, the span tag is discarded by the editor. In the FCKeditor this was not the case.
Are there any reasons why this change has been implementet, or can we consider it as a bug that will be fixed in a new release of the CKEditor ?
In HTML5 <span> element
In HTML5 <span> element cannot contain <hr> elements - see http://www.w3.org/html/wg/drafts/html/master/text-level-semantics.html#the-span-element
So this isn't a bug and therefore this behaviour won't be fixed. It might work in FCKEditor because (maybe) in previous versions of HTML span could contain horizontal rules or FCKEditor was less precise when fixing incorrect HTML.
PS. You can try to modify the CKEDITOR.dtd object, but in my opinion <hr> in <span> is a bad idea and that may cause other unpredictable issues.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+