Black Studio TinyMCE Widget - Version 1.1.0

Version Description

  • Compatibility fixes for upcoming Wordpress 3.5
  • Added support for the new Wordpress media library dialog
  • Enhanced javascript event handling using jquery .on(...) method
Download this release

Release Info

Developer marcochiesi
Plugin Icon 128x128 Black Studio TinyMCE Widget
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.0 to 1.1.0

black-studio-tinymce-widget-legacy.js ADDED
@@ -0,0 +1 @@
 
1
+ eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('8 x;8 U;8 W;(6(c){6 d(g){c("#"+g).Q("18");r(p(9)=="t"&&p(9.I)=="6"){b(g);r(p(x.A["5-4-3-1"])=="t"){x.A[g]=x.A["5-4-3-1"];x.A[g]["1q"]=g;1r{3.1t(3.1k({},x.A["5-4-3-1"],x.A[g]))}1f(f){1l(f)}}N{9.I("1m",X,g)}}}6 b(g){r(p(9)=="t"&&p(9.I)=="6"){r(p(9.w(g))=="t"){8 f=9.w(g).1s();9.I("1n",X,g);c("q#"+g).P(f)}}}6 a(f){c("7.1-s:B(#"+f+") F[2^=1-5-4-3][2$=K][13=y]").14(6(){r(c("7.1:B(#"+f+") :1e").11()==0&&p(9.w(f))!="t"&&c("#"+f).O(":J")){c("a[2^=1-5-4-3][2$=y]",c(o).v("7.1-s")).n()}N{r(p(9.w(f))!="t"){Z(6(){a(f);f=Y},M)}}})}6 e(f){c("7.1-s:B(#"+f+") F[2^=1-5-4-3][2$=K][13=y]").14(6(){r(c.D==0&&p(9.w(f))!="t"&&c("#"+f).O(":J")){c("a[2^=1-5-4-3][2$=y]",c(o).v("7.1-s")).n()}N{r(c("7.1:B(#"+f+") 7.1-s").O(":J")&&p(9.w(f))!="t"){Z(6(){e(f);f=Y},M)}}})}c(E).17(6(){c("7.1:B(q[2^=1-5-4-3]) a.1-19").C("n",6(g){g.G();8 i=c(o).v("7.1");8 h=c("q[2^=1-5-4-3]",i);c("#1a-1b").S("1c","J");i.S("15","16").S("z-1u","M");a(h.u("2"))});c(E).L("H").n.V(c(E).L("H").n.12());c("7.1[2*=5-4-3] F[1p=1o]").C("n",6(g){g.G();8 i=c(o).v("7.1");8 h=c("q[2^=1-5-4-3]",i);r(p(9.w(h.u("2")))=="t"){b(h.u("2"))}c(o).1d("T").T(6(k,l,j){8 m=c("q[2^=1-5-4-3]",c(o).v("7.1-s"));e(m.u("2"))})});c(E).L("H").n.V(c(E).L("H").n.12());c("a[2^=1-5-4-3][2$=y]").C("n",6(g){g.G();8 h=c(o).v("7.1-s");c("F[2^=1-5-4-3][2$=K]",h).P("y");c(o).Q("D");c("a[2^=1-5-4-3][2$=R]",h).10("D");d(c("q[2^=1-5-4-3]",h).u("2"))});c("a[2^=1-5-4-3][2$=R]").C("n",6(g){g.G();8 h=c(o).v("7.1-s");c("F[2^=1-5-4-3][2$=K]",h).P("R");c(o).Q("D");c("a[2^=1-5-4-3][2$=y]",h).10("D");b(c("q[2^=1-5-4-3]",h).u("2"))});c(".1j a").C("n",6(){8 g=c(o).v("7.1-s");U=c("q[2^=1-5-4-3]",g).w();W=c("q[2^=1-5-4-3]",g).u("2")});r(c("1i.1h").11()>0){8 f=c("q[2^=1-5-4-3]");a(f.u("2"))}})})(1g);',62,93,'|widget|id|tinymce|studio|black|function|div|var|tinyMCE||||||||||||||click|this|typeof|textarea|if|inside|object|attr|closest|get|tinyMCEPreInit|visual||mceInit|has|live|active|document|input|preventDefault|events|execCommand|visible|type|data|100|else|is|val|addClass|html|css|ajaxSuccess|edCanvas|unshift|wpActiveEditor|false|null|setTimeout|removeClass|size|pop|value|each|position|relative|ready|mceEditor|action|wpbody|content|overflow|unbind|animated|catch|jQuery|widgets_access|body|editor_media_buttons|extend|alert|mceAddControl|mceRemoveControl|savewidget|name|elements|try|getContent|init|index'.split('|'),0,{}))
black-studio-tinymce-widget.css CHANGED
@@ -25,6 +25,7 @@
25
  .editor_toggle_buttons {
26
  height: 30px;
27
  margin-right: 15px;
 
28
  float: right;
29
  }
30
  .editor_toggle_buttons a {
@@ -47,13 +48,17 @@
47
  color: #999;
48
  }
49
  .editor_toggle_buttons a.active {
50
- border-color: #CCC #CCC #E9E9E9;
51
- background-color: #E9E9E9;
52
  color: #333;
53
  }
 
 
 
 
54
  .editor_media_buttons {
55
  cursor: default;
56
- padding: 8px 8px 0;
57
  height: 22px;
58
  }
59
  .editor_media_buttons a {
@@ -61,6 +66,7 @@
61
  text-decoration: none;
62
  color: #333;
63
  font-size: 12px;
 
64
  }
65
  .editor_media_buttons img {
66
  vertical-align: middle;
25
  .editor_toggle_buttons {
26
  height: 30px;
27
  margin-right: 15px;
28
+ margin-top: 8px;
29
  float: right;
30
  }
31
  .editor_toggle_buttons a {
48
  color: #999;
49
  }
50
  .editor_toggle_buttons a.active {
51
+ border-color: #CCC #CCC #F4F4F4;
52
+ background-color: #F4F4F4;
53
  color: #333;
54
  }
55
+ .editor_toggle_buttons_legacy a.active {
56
+ border-color: #CCC #CCC #E9E9E9;
57
+ background-color: #E9E9E9;
58
+ }
59
  .editor_media_buttons {
60
  cursor: default;
61
+ padding: 8px 8px;
62
  height: 22px;
63
  }
64
  .editor_media_buttons a {
66
  text-decoration: none;
67
  color: #333;
68
  font-size: 12px;
69
+ margin-right: 8px;
70
  }
71
  .editor_media_buttons img {
72
  vertical-align: middle;
black-studio-tinymce-widget.js CHANGED
@@ -1 +1 @@
1
- eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('8 x;8 U;8 W;(6(c){6 d(g){c("#"+g).Q("18");r(p(9)=="t"&&p(9.I)=="6"){b(g);r(p(x.A["5-4-3-1"])=="t"){x.A[g]=x.A["5-4-3-1"];x.A[g]["1q"]=g;1r{3.1t(3.1k({},x.A["5-4-3-1"],x.A[g]))}1f(f){1l(f)}}N{9.I("1m",X,g)}}}6 b(g){r(p(9)=="t"&&p(9.I)=="6"){r(p(9.w(g))=="t"){8 f=9.w(g).1s();9.I("1n",X,g);c("q#"+g).P(f)}}}6 a(f){c("7.1-s:B(#"+f+") F[2^=1-5-4-3][2$=K][13=y]").14(6(){r(c("7.1:B(#"+f+") :1e").11()==0&&p(9.w(f))!="t"&&c("#"+f).O(":J")){c("a[2^=1-5-4-3][2$=y]",c(o).v("7.1-s")).n()}N{r(p(9.w(f))!="t"){Z(6(){a(f);f=Y},M)}}})}6 e(f){c("7.1-s:B(#"+f+") F[2^=1-5-4-3][2$=K][13=y]").14(6(){r(c.D==0&&p(9.w(f))!="t"&&c("#"+f).O(":J")){c("a[2^=1-5-4-3][2$=y]",c(o).v("7.1-s")).n()}N{r(c("7.1:B(#"+f+") 7.1-s").O(":J")&&p(9.w(f))!="t"){Z(6(){e(f);f=Y},M)}}})}c(E).17(6(){c("7.1:B(q[2^=1-5-4-3]) a.1-19").C("n",6(g){g.G();8 i=c(o).v("7.1");8 h=c("q[2^=1-5-4-3]",i);c("#1a-1b").S("1c","J");i.S("15","16").S("z-1u","M");a(h.u("2"))});c(E).L("H").n.V(c(E).L("H").n.12());c("7.1[2*=5-4-3] F[1p=1o]").C("n",6(g){g.G();8 i=c(o).v("7.1");8 h=c("q[2^=1-5-4-3]",i);r(p(9.w(h.u("2")))=="t"){b(h.u("2"))}c(o).1d("T").T(6(k,l,j){8 m=c("q[2^=1-5-4-3]",c(o).v("7.1-s"));e(m.u("2"))})});c(E).L("H").n.V(c(E).L("H").n.12());c("a[2^=1-5-4-3][2$=y]").C("n",6(g){g.G();8 h=c(o).v("7.1-s");c("F[2^=1-5-4-3][2$=K]",h).P("y");c(o).Q("D");c("a[2^=1-5-4-3][2$=R]",h).10("D");d(c("q[2^=1-5-4-3]",h).u("2"))});c("a[2^=1-5-4-3][2$=R]").C("n",6(g){g.G();8 h=c(o).v("7.1-s");c("F[2^=1-5-4-3][2$=K]",h).P("R");c(o).Q("D");c("a[2^=1-5-4-3][2$=y]",h).10("D");b(c("q[2^=1-5-4-3]",h).u("2"))});c(".1j a").C("n",6(){8 g=c(o).v("7.1-s");U=c("q[2^=1-5-4-3]",g).w();W=c("q[2^=1-5-4-3]",g).u("2")});r(c("1i.1h").11()>0){8 f=c("q[2^=1-5-4-3]");a(f.u("2"))}})})(1g);',62,93,'|widget|id|tinymce|studio|black|function|div|var|tinyMCE||||||||||||||click|this|typeof|textarea|if|inside|object|attr|closest|get|tinyMCEPreInit|visual||mceInit|has|live|active|document|input|preventDefault|events|execCommand|visible|type|data|100|else|is|val|addClass|html|css|ajaxSuccess|edCanvas|unshift|wpActiveEditor|false|null|setTimeout|removeClass|size|pop|value|each|position|relative|ready|mceEditor|action|wpbody|content|overflow|unbind|animated|catch|jQuery|widgets_access|body|editor_media_buttons|extend|alert|mceAddControl|mceRemoveControl|savewidget|name|elements|try|getContent|init|index'.split('|'),0,{}))
1
+ eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('8 D;8 T;(6(c){6 d(g){c("#"+g).R("1c");w(t(q)=="x"&&t(q.N)=="6"){b(g);D.F[g]=D.F["5-4-3-2"];D.F[g]["1b"]=g;1a{3.19(3.1d({},D.F["5-4-3-2"],D.F[g]))}1e(f){1i(f)}}}6 b(g){w(t(q)=="x"&&t(q.N)=="6"){w(t(q.y(g))=="x"){8 f=q.y(g).18();q.N("1g",1f,g);c("s#"+g).O(f)}}}6 a(f){c("7.2-u:H(#"+f+") C[1^=2-5-4-3][1$=K][V=B]").W(6(){w(c("7.2:H(#"+f+") :1j").Y()==0&&t(q.y(f))!="x"&&c("#"+f).M(":J")){c("a[1^=2-5-4-3][1$=B]",c(9).v("7.2-u")).A()}X{w(t(q.y(f))!="x"){10(6(){a(f);f=12},P)}}})}6 e(f){c("7.2-u:H(#"+f+") C[1^=2-5-4-3][1$=K][V=B]").W(6(){w(c.G==0&&t(q.y(f))!="x"&&c("#"+f).M(":J")){c("a[1^=2-5-4-3][1$=B]",c(9).v("7.2-u")).A()}X{w(c("7.2:H(#"+f+") 7.2-u").M(":J")&&t(q.y(f))!="x"){10(6(){e(f);f=12},P)}}})}c(I).17(6(){c(I).E("A","7.2:H(s[1^=2-5-4-3]) a.2-14",6(g){8 i=c(9).v("7.2");8 h=c("s[1^=2-5-4-3]",i);c("C[11=Z]",i).E("A",6(j){8 l=c(9).v("7.2");8 k=c("s[1^=2-5-4-3]",l);w(t(q.y(k.r("1")))=="x"){b(k.r("1"))}c(9).U("L").L(6(n,o,m){8 p=c("s[1^=2-5-4-3]",c(9).v("7.2-u"));e(p.r("1"))})});c("#15-16").S("1h","J");i.S("1o","1t").S("z-1q","P");a(h.r("1"));c(".1m-1r",i).1k("1n",h.r("1"))});c("7.2[1*=5-4-3] C[11=Z]").E("A",6(g){8 i=c(9).v("7.2");8 h=c("s[1^=2-5-4-3]",i);w(t(q.y(h.r("1")))=="x"){b(h.r("1"))}c(9).U("L").L(6(k,l,j){8 m=c("s[1^=2-5-4-3]",c(9).v("7.2-u"));e(m.r("1"))})});c(I).E("A","a[1^=2-5-4-3][1$=B]",6(g){8 h=c(9).v("7.2-u");c("C[1^=2-5-4-3][1$=K]",h).O("B");c(9).R("G");c("a[1^=2-5-4-3][1$=Q]",h).13("G");d(c("s[1^=2-5-4-3]",h).r("1"))});c(I).E("A","a[1^=2-5-4-3][1$=Q]",6(g){8 h=c(9).v("7.2-u");c("C[1^=2-5-4-3][1$=K]",h).O("Q");c(9).R("G");c("a[1^=2-5-4-3][1$=B]",h).13("G");b(c("s[1^=2-5-4-3]",h).r("1"))});c(I).E("A",".1l a",6(){8 g=c(9).v("7.2-u");T=c("s[1^=2-5-4-3]",g).r("1")});w(c("1s.1u").Y()>0){8 f=c("s[1^=2-5-4-3]");a(f.r("1"))}})})(1p);',62,93,'|id|widget|tinymce|studio|black|function|div|var|this|||||||||||||||||tinyMCE|attr|textarea|typeof|inside|closest|if|object|get||click|visual|input|tinyMCEPreInit|on|mceInit|active|has|document|visible|type|ajaxSuccess|is|execCommand|val|100|html|addClass|css|wpActiveEditor|unbind|value|each|else|size|savewidget|setTimeout|name|null|removeClass|action|wpbody|content|ready|getContent|init|try|elements|mceEditor|extend|catch|false|mceRemoveControl|overflow|alert|animated|data|editor_media_buttons|insert|editor|position|jQuery|index|media|body|relative|widgets_access'.split('|'),0,{}))
black-studio-tinymce-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Black Studio TinyMCE Widget
4
  Plugin URI: http://wordpress.org/extend/plugins/black-studio-tinymce-widget/
5
  Description: Adds a WYSIWYG widget based on the standard TinyMCE WordPress visual editor.
6
- Version: 1.0.0
7
  Author: Black Studio
8
  Author URI: http://www.blackstudio.it
9
  License: GPL2
@@ -11,7 +11,7 @@ License: GPL2
11
 
12
  global $black_studio_tinymce_widget_version;
13
  global $black_studio_tinymce_widget_dev_mode;
14
- $black_studio_tinymce_widget_version = "1.0.0"; // This is used internally - should be the same reported on the plugin header
15
  $black_studio_tinymce_widget_dev_mode = false;
16
 
17
  /* Widget class */
@@ -69,16 +69,24 @@ class WP_Widget_Black_Studio_TinyMCE extends WP_Widget {
69
  $text = stripslashes( wp_filter_post_kses( addslashes( $instance['text'] ) ) );
70
  }
71
  $type = esc_attr($instance['type']);
 
 
 
 
 
 
 
 
72
  ?>
73
  <input id="<?php echo $this->get_field_id('type'); ?>" name="<?php echo $this->get_field_name('type'); ?>" type="hidden" value="<?php echo esc_attr($type); ?>" />
74
  <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label>
75
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></p>
76
- <div class="editor_toggle_buttons hide-if-no-js">
77
  <a id="widget-<?php echo $this->id_base; ?>-<?php echo $this->number; ?>-html"<?php if ($type == 'html') {?> class="active"<?php }?>><?php _e('HTML'); ?></a>
78
  <a id="widget-<?php echo $this->id_base; ?>-<?php echo $this->number; ?>-visual"<?php if($type == 'visual') {?> class="active"<?php }?>><?php _e('Visual'); ?></a>
79
  </div>
80
- <div class="editor_media_buttons hide-if-no-js">
81
- <?php do_action( 'media_buttons' ); ?>
82
  </div>
83
  <div class="editor_container">
84
  <textarea class="widefat" rows="20" cols="40" id="<?php echo $this->get_field_id('text'); ?>" name="<?php echo $this->get_field_name('text'); ?>"><?php echo $text; ?></textarea>
@@ -107,7 +115,7 @@ function black_studio_tinymce_admin_init() {
107
  if ($pagenow == "widgets.php") {
108
  $load_editor = true;
109
  }
110
- // Compatibility for WP Pafe Widget plugin
111
  if (is_plugin_active('wp-page-widget/wp-page-widgets.php') && ( $pagenow == "post-new.php" || $pagenow == "post.php" )) {
112
  $load_editor = true;
113
  }
@@ -126,7 +134,12 @@ function black_studio_tinymce_load_tiny_mce() {
126
  remove_filter( 'mce_external_plugins', 'add_AtD_tinymce_plugin' );
127
  remove_filter( 'mce_buttons', 'register_AtD_button' );
128
  remove_filter( 'tiny_mce_before_init', 'AtD_change_mce_settings' );
129
- //remove_all_filters('mce_external_plugins');
 
 
 
 
 
130
  }
131
 
132
  /* TinyMCE setup customization */
@@ -165,13 +178,15 @@ function black_studio_tinymce_init_editor($initArray) {
165
  /* Widget js loading */
166
  function black_studio_tinymce_scripts() {
167
  global $black_studio_tinymce_widget_version, $black_studio_tinymce_widget_dev_mode;
168
- add_thickbox();
169
  if (get_bloginfo('version') >= "3.3") {
170
  wp_enqueue_script('wplink');
171
  wp_enqueue_script('wpdialogs-popup');
 
 
 
 
172
  }
173
- wp_enqueue_script('media-upload');
174
- wp_enqueue_script('black-studio-tinymce-widget', plugins_url('black-studio-tinymce-widget'.($black_studio_tinymce_widget_dev_mode?'.dev':'').'.js', __FILE__), array('jquery'), $black_studio_tinymce_widget_version);
175
  }
176
 
177
  /* Widget css loading */
@@ -183,6 +198,7 @@ function black_studio_tinymce_styles() {
183
  else {
184
  wp_enqueue_style('wp-jquery-ui-dialog');
185
  }
 
186
  wp_enqueue_style('black-studio-tinymce-widget', plugins_url('black-studio-tinymce-widget.css', __FILE__), array(), $black_studio_tinymce_widget_version);
187
  }
188
 
3
  Plugin Name: Black Studio TinyMCE Widget
4
  Plugin URI: http://wordpress.org/extend/plugins/black-studio-tinymce-widget/
5
  Description: Adds a WYSIWYG widget based on the standard TinyMCE WordPress visual editor.
6
+ Version: 1.1.0
7
  Author: Black Studio
8
  Author URI: http://www.blackstudio.it
9
  License: GPL2
11
 
12
  global $black_studio_tinymce_widget_version;
13
  global $black_studio_tinymce_widget_dev_mode;
14
+ $black_studio_tinymce_widget_version = "1.1.0"; // This is used internally - should be the same reported on the plugin header
15
  $black_studio_tinymce_widget_dev_mode = false;
16
 
17
  /* Widget class */
69
  $text = stripslashes( wp_filter_post_kses( addslashes( $instance['text'] ) ) );
70
  }
71
  $type = esc_attr($instance['type']);
72
+ if (get_bloginfo('version') < "3.5") {
73
+ $toggle_buttons_extra_class = "editor_toggle_buttons_legacy";
74
+ $media_buttons_extra_class = "editor_media_buttons_legacy";
75
+ }
76
+ else {
77
+ $toggle_buttons_extra_class = "wp-toggle-buttons";
78
+ $media_buttons_extra_class = "wp-media-buttons";
79
+ }
80
  ?>
81
  <input id="<?php echo $this->get_field_id('type'); ?>" name="<?php echo $this->get_field_name('type'); ?>" type="hidden" value="<?php echo esc_attr($type); ?>" />
82
  <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label>
83
  <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></p>
84
+ <div class="editor_toggle_buttons hide-if-no-js <?php echo $toggle_buttons_extra_class; ?>">
85
  <a id="widget-<?php echo $this->id_base; ?>-<?php echo $this->number; ?>-html"<?php if ($type == 'html') {?> class="active"<?php }?>><?php _e('HTML'); ?></a>
86
  <a id="widget-<?php echo $this->id_base; ?>-<?php echo $this->number; ?>-visual"<?php if($type == 'visual') {?> class="active"<?php }?>><?php _e('Visual'); ?></a>
87
  </div>
88
+ <div class="editor_media_buttons hide-if-no-js <?php echo $media_buttons_extra_class; ?>">
89
+ <?php do_action( 'media_buttons' ); ?>
90
  </div>
91
  <div class="editor_container">
92
  <textarea class="widefat" rows="20" cols="40" id="<?php echo $this->get_field_id('text'); ?>" name="<?php echo $this->get_field_name('text'); ?>"><?php echo $text; ?></textarea>
115
  if ($pagenow == "widgets.php") {
116
  $load_editor = true;
117
  }
118
+ // Compatibility for WP Page Widget plugin
119
  if (is_plugin_active('wp-page-widget/wp-page-widgets.php') && ( $pagenow == "post-new.php" || $pagenow == "post.php" )) {
120
  $load_editor = true;
121
  }
134
  remove_filter( 'mce_external_plugins', 'add_AtD_tinymce_plugin' );
135
  remove_filter( 'mce_buttons', 'register_AtD_button' );
136
  remove_filter( 'tiny_mce_before_init', 'AtD_change_mce_settings' );
137
+ // Add support for thickbox media dialog
138
+ add_thickbox();
139
+ // New media modal dialog (WP 3.5+)
140
+ if (function_exists('wp_enqueue_media')) {
141
+ wp_enqueue_media();
142
+ }
143
  }
144
 
145
  /* TinyMCE setup customization */
178
  /* Widget js loading */
179
  function black_studio_tinymce_scripts() {
180
  global $black_studio_tinymce_widget_version, $black_studio_tinymce_widget_dev_mode;
181
+ wp_enqueue_script('media-upload');
182
  if (get_bloginfo('version') >= "3.3") {
183
  wp_enqueue_script('wplink');
184
  wp_enqueue_script('wpdialogs-popup');
185
+ wp_enqueue_script('black-studio-tinymce-widget', plugins_url('black-studio-tinymce-widget'.($black_studio_tinymce_widget_dev_mode?'.dev':'').'.js', __FILE__), array('jquery'), $black_studio_tinymce_widget_version);
186
+ }
187
+ else {
188
+ wp_enqueue_script('black-studio-tinymce-widget-legacy', plugins_url('black-studio-tinymce-widget-legacy'.($black_studio_tinymce_widget_dev_mode?'.dev':'').'.js', __FILE__), array('jquery'), $black_studio_tinymce_widget_version);
189
  }
 
 
190
  }
191
 
192
  /* Widget css loading */
198
  else {
199
  wp_enqueue_style('wp-jquery-ui-dialog');
200
  }
201
+ wp_print_styles('editor-buttons');
202
  wp_enqueue_style('black-studio-tinymce-widget', plugins_url('black-studio-tinymce-widget.css', __FILE__), array(), $black_studio_tinymce_widget_version);
203
  }
204
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: marcochiesi, thedarkmist
3
  Donate link: http://www.blackstudio.it/en/wordpress-plugins/black-studio-tinymce-widget/
4
  Tags: wysiwyg, widget, tinymce, editor, image, media, rich text, rich text editor, visual editor, wysiwyg editor, tinymce editor, widget editor, html editor, wysiwyg widget, html widget, editor widget, text widget, rich text widget, enhanced text widget, tinymce widget, visual widget, image widget, media widget
5
  Requires at least: 3.0
6
- Tested up to: 3.4
7
- Stable tag: 1.0.0
8
 
9
  Adds a WYSIWYG widget based on the standard TinyMCE WordPress visual editor.
10
 
@@ -68,6 +68,11 @@ Alternatively, if you don't want to use `[embed]` shortcode, ensure that the URL
68
 
69
  == Changelog ==
70
 
 
 
 
 
 
71
  = 1.0.0 =
72
  * Added full image options when adding content from media library
73
  * Added german translation (Contributor: Christian Foellmann)
3
  Donate link: http://www.blackstudio.it/en/wordpress-plugins/black-studio-tinymce-widget/
4
  Tags: wysiwyg, widget, tinymce, editor, image, media, rich text, rich text editor, visual editor, wysiwyg editor, tinymce editor, widget editor, html editor, wysiwyg widget, html widget, editor widget, text widget, rich text widget, enhanced text widget, tinymce widget, visual widget, image widget, media widget
5
  Requires at least: 3.0
6
+ Tested up to: 3.5
7
+ Stable tag: 1.1.0
8
 
9
  Adds a WYSIWYG widget based on the standard TinyMCE WordPress visual editor.
10
 
68
 
69
  == Changelog ==
70
 
71
+ = 1.1.0 =
72
+ * Compatibility fixes for upcoming Wordpress 3.5
73
+ * Added support for the new Wordpress media library dialog
74
+ * Enhanced javascript event handling using jquery .on(...) method
75
+
76
  = 1.0.0 =
77
  * Added full image options when adding content from media library
78
  * Added german translation (Contributor: Christian Foellmann)