Skip to content

Commit

Permalink
B.C. fix for Mootools window.getSize
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Nov 14, 2015
1 parent b8386fb commit faf1fa5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plugins/editors/tinymce/tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,14 @@ public function onInit()
$mode = 0;
}

$script = "
$script = '';

// Mootools b/c
$script .= '
window.getSize = window.getSize || function(){return {x: jQuery(window).width(), y: jQuery(window).height()};};
';

$script .= "
tinymce.init({
";

Expand Down

0 comments on commit faf1fa5

Please sign in to comment.