From a2ce5108e81044856bc05a969527da02bc1bafe1 Mon Sep 17 00:00:00 2001 From: Konzertheld Date: Sun, 22 Sep 2013 05:12:22 +0200 Subject: [PATCH] Require JQuery so the script is not loaded before --- tinymce.plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinymce.plugin.php b/tinymce.plugin.php index 77a2682..7d330cf 100644 --- a/tinymce.plugin.php +++ b/tinymce.plugin.php @@ -62,7 +62,7 @@ public function configure() public function action_admin_header( $theme ) { if ( $theme->page == 'publish' ) { - Stack::add( 'admin_header_javascript', $this->get_url() . '/tiny_mce/tiny_mce.js', 'tiny_mce' ); + Stack::add( 'admin_header_javascript', $this->get_url() . '/tiny_mce/tiny_mce.js', 'tiny_mce', 'jquery' ); $options = User::identify()->info->tinymce_options; if ( $options == '' ) { $options = 'mode: "textareas", theme: "simple"';