Black Studio TinyMCE Widget - Version 1.2.0

Version Description

  • Fixed issue with Wordpress widgets accessibility mode
  • Fixed compatibility issue with WPML plugin generating an error in debug mode
  • Fixed compatibility issue with WP Page Widget plugin
  • Added slovak translation (Contributor: Branco Radenovich - WebHostingGeeks.com)
  • Tested compatibility with Worpdress 3.6 beta
Download this release

Release Info

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

Code changes from version 1.1.1 to 1.2.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.1.1
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.1.1"; // 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 */
@@ -33,8 +33,8 @@ class WP_Widget_Black_Studio_TinyMCE extends WP_Widget {
33
  $title = apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
34
  $text = apply_filters( 'widget_text', $instance['text'], $instance );
35
  if( function_exists( 'icl_t' )) {
36
- $title = icl_t( "Widgets", 'widget title - ' . md5 ( $title ), $title, $hasTranslation, true );
37
- $text = icl_t( "Widgets", 'widget body - ' . $this->id_base . '-' . $this->number, $text, $hasTranslation, true );
38
  }
39
  $text = do_shortcode( $text );
40
  echo $before_widget;
@@ -116,7 +116,11 @@ function black_studio_tinymce_admin_init() {
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
  }
122
  if ($load_editor) {
@@ -239,3 +243,13 @@ function black_studio_tinymce_upload_iframe_src ($upload_iframe_src) {
239
  }
240
  return $upload_iframe_src;
241
  }
 
 
 
 
 
 
 
 
 
 
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.2.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.2.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 */
33
  $title = apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
34
  $text = apply_filters( 'widget_text', $instance['text'], $instance );
35
  if( function_exists( 'icl_t' )) {
36
+ $title = icl_t( "Widgets", 'widget title - ' . md5 ( $title ), $title );
37
+ $text = icl_t( "Widgets", 'widget body - ' . $this->id_base . '-' . $this->number, $text );
38
  }
39
  $text = do_shortcode( $text );
40
  echo $before_widget;
116
  $load_editor = true;
117
  }
118
  // Compatibility for WP Page Widget plugin
119
+ if (is_plugin_active('wp-page-widget/wp-page-widgets.php') && (
120
+ (in_array($pagenow, array('post-new.php', 'post.php'))) ||
121
+ (in_array($pagenow, array('edit-tags.php')) && isset($_GET['action']) && $_GET['action'] == 'edit') ||
122
+ (in_array($pagenow, array('admin.php')) && isset($_GET['page']) && in_array($_GET['page'], array('pw-front-page', 'pw-search-page')))
123
+ )) {
124
  $load_editor = true;
125
  }
126
  if ($load_editor) {
243
  }
244
  return $upload_iframe_src;
245
  }
246
+
247
+ /* Hack for widgets accessibility mode */
248
+ add_filter('wp_default_editor', 'black_studio_tinymce_editor_accessibility_mode');
249
+ function black_studio_tinymce_editor_accessibility_mode($editor) {
250
+ global $pagenow;
251
+ if ($pagenow == "widgets.php" && isset($_GET['editwidget']) && strpos($_GET['editwidget'], 'black-studio-tinymce') === 0 ) {
252
+ $editor = 'html';
253
+ }
254
+ return $editor;
255
+ }
languages/black-studio-tinymce-widget_sk_SK.mo ADDED
Binary file
languages/black-studio-tinymce-widget_sk_SK.po ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Black Studio TinyMCE Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-07-31 10:28+0100\n"
6
+ "PO-Revision-Date: 2013-01-16 02:04+0300\n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: Black Studio <info@blackstudio.it>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+ "Language: it_IT\n"
16
+ "X-Generator: Poedit 1.5.4\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: black-studio-tinymce-widget.php:19
20
+ msgid "Arbitrary text or HTML with visual editor"
21
+ msgstr "Ľubovoľné textové alebo HTML s vizuálny editor"
22
+
23
+ #: black-studio-tinymce-widget.php:21
24
+ msgid "Black Studio TinyMCE"
25
+ msgstr "Čierne Studio TinyMCE"
26
+
27
+ #: black-studio-tinymce-widget.php:79
28
+ msgid "Donate"
29
+ msgstr "Darovať"
30
+
31
+ #: black-studio-tinymce-widget.php:79
32
+ msgid "Support"
33
+ msgstr "Podpora"
34
+
35
+ #: black-studio-tinymce-widget.php:79
36
+ msgid "Follow"
37
+ msgstr "Postupujte podľa"
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.5
7
- Stable tag: 1.1.1
8
 
9
  Adds a WYSIWYG widget based on the standard TinyMCE WordPress visual editor.
10
 
@@ -68,6 +68,13 @@ Alternatively, if you don't want to use `[embed]` shortcode, ensure that the URL
68
 
69
  == Changelog ==
70
 
 
 
 
 
 
 
 
71
  = 1.1.1 =
72
  * Fixed editor issue when dragging widgets from a sidebar to another
73
 
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.6
7
+ Stable tag: 1.2.0
8
 
9
  Adds a WYSIWYG widget based on the standard TinyMCE WordPress visual editor.
10
 
68
 
69
  == Changelog ==
70
 
71
+ = 1.2.0 =
72
+ * Fixed issue with Wordpress widgets accessibility mode
73
+ * Fixed compatibility issue with WPML plugin generating an error in debug mode
74
+ * Fixed compatibility issue with WP Page Widget plugin
75
+ * Added slovak translation (Contributor: Branco Radenovich - [WebHostingGeeks.com](http://webhostinggeeks.com/user-reviews/))
76
+ * Tested compatibility with Worpdress 3.6 beta
77
+
78
  = 1.1.1 =
79
  * Fixed editor issue when dragging widgets from a sidebar to another
80