TinyMCE 3.4.5 bug. Need update to 3.4.6
|Reported by:||lazyeugene||Owned by:|
TinyMCE in latest beta has an annoying bug - it sanitizes class from <pre> tag (maybe from others tags also, but pre is important). Make this steps:
- Create new post and go to HTML editor. Type in something like this:
<pre class="brush:php">echo 12345;</pre>
- Switch to visual tab, after that switch to HTML tab. You'll get:
<pre class="undefined">echo 12345;</pre>
Updating to TinyMCE 3.4.6 (i made it for myself) fixes this issue. It is importand due to using class attribute to highlight syntax with "SyntaxHighlighter" on hundreds of IT-related blogs.