I'm here because it's been suggested here that this is a WYSIWYG issue: http://drupal.org/node/616322
When I paste plain text into the FCKeditor it capitalizes all the elements. For example it uses: P, BR, STRONG, and TEXT-ALIGN instead of p, br, strong, and text-align. Plus, I'd like it to close the br tag, i.e. br / . Is there a way I can make the editor use lowercase instead? Or define that br / and other tags? Right now all the tags I mention don't validate.
This is not happening on other installs, but also I haven't had to use the IMCE WYSIWYG bridge on other installs so I thought possibly that might be related.
relevant video of issue:
password to view video is "Drupal"
http://www.blip.tv/file/2779582
screenshots of my WYSIWYG module settings:
http://picasaweb.google.com/jkellyllekj/FCKeditor?authkey=Gv1sRgCOWztPjw...
Comments
Comment #1
twodThe problem with self-closing tags is described here #510552: Invalid XHTML: missing trailing slashes, absolute urls and uppercase tags. I think we need to escape/preserve those prior to letting drupal plugins (jQuery) touch the source and put them back afterwards.
We've seen capitalized tags before somewhere, but I can't find the issue now. I think it was partially browser-related in combination with generating a DOM of the source and serializing it again in Drupal plugins like Teaser Break, Image Assist and IMCE.
All I can say now is that this is on my todo list.
Comment #2
kellyllek commentedI didn't see anything like this before until I installed the IMCE-WYSIWYG module. I wonder if I'd installed that module before I installed the FCK editor if that would make a difference? I have no clue about any of this. Do you think I should remove them all and put them back in?
I just tried it in Firefox and don't have the capitalization issue (was on IE), though the backsplash is still there. Thanks for taking a look.
Comment #3
twodYup, then I think I know exactly what the problem is. Drupal serves XHTML tags, but the metatags say text/html, which I think confuses IE into putting out HTML tags which are allowed to be uppercase, and HTML does not have the / in self closing tags. I don't think this is IMCE Wysiwyg Brige's fault because it does not interact with the content directly. Do you have the Teaser Break plugin/button enabled as well? It does do the conversion from serialized XHTML to DOM tree and back again to serialized XHTML (using jQuery which in turn uses the browser's internal functions). It's in the 'back to XHTML' part it goes wrong and out comes HTML instead.
The order in which you install the modules does not make a difference.
Comment #4
kellyllek commentedGuess what, I removed the Teaser Break button and it immediately corrected both the capitalization and missing / issues!
Thanks again TwoD
Comment #5
twodI'm marking this a duplicate of #510552: Invalid XHTML: missing trailing slashes, absolute urls and uppercase tags. Slightly different symptoms but the same cause.