Skip to content

Instantly share code, notes, and snippets.

@aaronrussell
Created September 24, 2009 10:42
Show Gist options
  • Save aaronrussell/192660 to your computer and use it in GitHub Desktop.
Save aaronrussell/192660 to your computer and use it in GitHub Desktop.
tinymce_communicate TinyBrowser hack
<?php
/*
* 1. Find list line (about line 60)
*/
$replace = '<script type="text/javascript" src="' . trim($this->settings['script_path']) . '"></script>' . NL;
/*
* 2. Add DIRECTLY UNDERNEATH IT
*/
$replace .= '<script type="text/javascript" src="' . str_replace('tiny_mce.js', 'plugins/tinybrowser/tb_tinymce.js.php', trim($this->settings['script_path'])) .'"></script>';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment