I have a custom ckeditor style called "Maori words" which adds a span tag around the word with the attribute lang="mi". When I have the Correct faulty and chopped off HTML filter turned on I get output that looks like this:
<span lang="mi" xml:lang="mi" xml:lang="mi">
As soon as I turn the filter off it fixes all instances of this and just outputs:
<span lang="mi" xml:lang="mi">
What is causing this? It seems to only happen on some instances of the span, like it's adding an additional xml:lang attribute when there's already one there. The other filters I'm using are Correct URLs with Pathologic and Convert URLs into links.
Comments
Comment #1
mkesicki commentedI think that some of your example code was stripped. Please paste it one more time (use "code" tag if it is striped).
Comment #2
acbramley commentedWoops, edited and fixed.
Comment #3
mkesicki commentedComment #4
acbramley commentedWhat do you mean it won't fix? It's clearly doing something that it shouldn't and producing invlaid markup.
Comment #5
mkesicki commentedYou wrote http://drupal.org/node/1341550#comment-5248790 that it's fixed, so I think it's ok now. Ok we will check this.
Comment #6
acbramley commentedSorry I meant I fixed the example code being stripped :)
Comment #7
dczepierga commentedHi,
Try in your CKEditor profile change option "Use Drupal text format filters" to "Disabled" (this option is in "Security" section) and save profile. After this check does it help or not.
Greetings
Comment #8
acbramley commentedAaaah I think this might be what is going wrong, I had that enabled and in the text format I had the same option "Correct faulty and chopped off HTML" checked. Disabling that filter in the text format fixes it. Do you think that would be what was causing it?
Comment #9
dczepierga commentedI think this was problem with option "Use Drupal text format filters", because when is enabled CKEditor module on start is calling function which enable Drupal text format processing with all filters enabled for used text format. Then it could add your span with lang attribute two times...
Greetings
Comment #10.0
(not verified) commentedadded code tags