Hi, this is my second tutorial about WP.
In this one i’ll explain how to hack wp to get working TinyMCE 2.0.7 fine on it for safari browsers.
Let’s start!
First of all we have to upgrade out TinyMCE, look at this tutorial
Ok quite half work is done.
Now we have to edit a couple of Wp files:
tiny_mce_gzip.php
We have to edit line 18:
browsers : “msie,gecko,opera”,
changing to
browsers : “msie,gecko,opera,safari”,
wp-admin/admin-functions.php
line 1815:
we have to comment this line
/* if ( preg_match(‘!opera[ /][2-8]|konqueror|safari!i’, $_SERVER['HTTP_USER_AGENT']) )
return false;*/
and line 1083:
we replace the current the_quicktags() function with
function the_quicktags() {
// Browser detection sucks, but until Safari supports the JS needed for this to work people just assume it’s a bug in WP
echo ‘
‘;
echo ‘
‘;
}
At the moment the only bug is related to link system that seems not to work…
We have to wait till a new TinyMce version for a full support on Safari, but let’s start having it half working…