[wp-hackers] TinyMCE stripping name tag out of PRE elements

Andrew Ozz admin at laptoptips.ca
Fri Oct 31 07:08:23 GMT 2008

Daniel Brown wrote:
> What is the procedure for submitting changes to the TinyMCE editor?

TinyMCE is an open source project, http://tinymce.moxiecode.com/

> I'm a fan of the google syntax highlighter library
> (http://code.google.com/p/syntaxhighlighter/) and use it on my blog
> but I've noticed that TinyMCE is stripping the name tag out of the PRE
> elements that are used to identify the code for the highlighter
> library.

Yes, TinyMCE produces XHTML 1.0 strict output and "name" is an invalid 
attribute for the <pre> tag.

If you want to use this syntax highlighter, a better/easier option would 
be to install one of the WordPress plugins that include it.

More information about the wp-hackers mailing list