shazahm1 / WP-Syntax

WP-Syntax WordPress Plugin
connections-pro.com
GNU General Public License v2.0
13 stars 11 forks source link

TinyMCE Bug #12

Open shazahm1 opened 11 years ago

shazahm1 commented 11 years ago

A bug in WP-Syntax 1.0 or in the GeSHi syntax highlighter. When adding the following highlighted script in text mode to a post

<pre lang="bash" line="1">
cat > /somedir/somefile <<EOF
#someinstruction
EOF
</pre>

And switching to visual mode it is changed into

cat > /somedir/somefile <

Switching back to text mode the original entered script has been changed to

<pre lang="bash" line="1">cat &gt; /somedir/somefile &lt;</pre>

Seems to be related to the duplicate less-than symbol. When entering it between the standard wordpress [code][/code] blocks it is not corrupted.