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

Ryan McCue ryanmccue at cubegames.net
Sat Nov 1 01:10:27 GMT 2008


Jason Webster wrote:
> This is not really a bug per se, though.
> It is possible to allow the name attribute of pre tags through
> TinyMCE's code cleanup filter.
>
> The "extended_valid_elements" option of the TinyMCE init object needs
> to include the following:
> pre[name]

It doesn't change the fact it's not a valid attribute. You should be
using "id" instead.

-- 
Ryan McCue
<http://cubegames.net/>



More information about the wp-hackers mailing list