Black Studio TinyMCE Widget - Version 2.5.1

Version Description

(2017-10-01) = *Hotfix for Page Builder / Elementor compatibility

Download this release

Release Info

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

Code changes from version 2.5.0 to 2.5.1

black-studio-tinymce-widget.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Black Studio TinyMCE Widget
4
Plugin URI: https://wordpress.org/plugins/black-studio-tinymce-widget/
5
Description: Adds a new "Visual Editor" widget type based on the native WordPress TinyMCE editor.
6
- Version: 2.5.0
7
Author: Black Studio
8
Author URI: http://www.blackstudio.it
9
Requires at least: 3.1
@@ -35,7 +35,7 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Plugin' ) ) {
35
* @var string
36
* @since 2.0.0
37
*/
38
- public static $version = '2.5.0';
39
40
/**
41
* The single instance of the plugin class
@@ -225,9 +225,7 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Plugin' ) ) {
225
if ( ! is_blog_installed() ) {
226
return;
227
}
228
- if ( ! is_admin() || self::$admin->enabled() ) {
229
- register_widget( 'WP_Widget_Black_Studio_TinyMCE' );
230
- }
231
}
232
233
/**
3
Plugin Name: Black Studio TinyMCE Widget
4
Plugin URI: https://wordpress.org/plugins/black-studio-tinymce-widget/
5
Description: Adds a new "Visual Editor" widget type based on the native WordPress TinyMCE editor.
6
+ Version: 2.5.1
7
Author: Black Studio
8
Author URI: http://www.blackstudio.it
9
Requires at least: 3.1
35
* @var string
36
* @since 2.0.0
37
*/
38
+ public static $version = '2.5.1';
39
40
/**
41
* The single instance of the plugin class
225
if ( ! is_blog_installed() ) {
226
return;
227
}
228
+ register_widget( 'WP_Widget_Black_Studio_TinyMCE' );
229
}
230
231
/**
includes/class-compatibility-plugins.php CHANGED
@@ -438,8 +438,21 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Compatibility_Plugins' ) ) {
438
public function elementor() {
439
if ( is_admin() && isset( $_GET['action'] ) && 'elementor' == $_GET['action'] ) {
440
add_filter( 'black_studio_tinymce_enable', '__return_false', 100 );
441
}
442
}
443
444
} // END class Black_Studio_TinyMCE_Compatibility_Plugins
445
438
public function elementor() {
439
if ( is_admin() && isset( $_GET['action'] ) && 'elementor' == $_GET['action'] ) {
440
add_filter( 'black_studio_tinymce_enable', '__return_false', 100 );
441
+ add_action( 'widgets_init', array( $this, 'elementor_unregister_widget' ), 20 );
442
}
443
}
444
+
445
+ /**
446
+ * Unregister Widget for Elementor plugin
447
+ *
448
+ * @uses unregister_widget()
449
+ *
450
+ * @return void
451
+ * @since 2.5.1
452
+ */
453
+ public function elementor_unregister_widget() {
454
+ unregister_widget( 'WP_Widget_Black_Studio_TinyMCE' );
455
+ }
456
457
} // END class Black_Studio_TinyMCE_Compatibility_Plugins
458
languages/black-studio-tinymce-widget.pot CHANGED
@@ -1,107 +1,107 @@
1
- # Copyright (C) 2017 Black Studio
2
- # This file is distributed under the GPLv3.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: Black Studio TinyMCE Widget 2.5.0\n"
6
- "Report-Msgid-Bugs-To: "
7
- "https://github.com/black-studio/black-studio-tinymce-widget/issues\n"
8
- "POT-Creation-Date: 2017-09-30 22:53:41+00:00\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=utf-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: Black Studio <info@blackstudio.it>\n"
14
- "Language-Team: Black Studio <info@blackstudio.it>\n"
15
- "X-Generator: grunt-wp-i18n 0.4.9\n"
16
- "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
- "X-Poedit-Basepath: .\n"
18
- "X-Poedit-Language: English\n"
19
- "X-Poedit-Country: United States\n"
20
- "X-Poedit-SourceCharset: utf-8\n"
21
- "X-Poedit-KeywordsList: "
22
- "__;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_"
23
- "x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
24
- "X-Poedit-Bookmarks: \n"
25
- "X-Poedit-SearchPath-0: .\n"
26
- "X-Textdomain-Support: yes\n"
27
-
28
- #: black-studio-tinymce-widget.php:281
29
- #. translators: error message shown when multiple instance of the plugin are
30
- #. detected
31
- msgid ""
32
- "ERROR: Multiple instances of the Black Studio TinyMCE Widget plugin were "
33
- "detected. Please activate only one instance at a time."
34
- msgstr ""
35
-
36
- #: includes/class-admin-pointer.php:167
37
- #. translators: text for the dismissable admin pointer tooltip
38
- msgid ""
39
- "The Visual Editor widget allows you to insert rich text and media objects "
40
- "in your sidebars"
41
- msgstr ""
42
-
43
- #: includes/class-admin.php:250
44
- #. translators: error message shown when a duplicated widget ID is detected
45
- msgid ""
46
- "ERROR: Duplicate widget ID detected. To avoid content loss, please create a "
47
- "new widget with the same content and then delete this one."
48
- msgstr ""
49
-
50
- #: includes/class-admin.php:338
51
- #. translators: text used for plugin home link
52
- msgid "Home"
53
- msgstr ""
54
-
55
- #: includes/class-admin.php:340
56
- #. translators: text used for support faq link
57
- msgid "FAQ"
58
- msgstr ""
59
-
60
- #: includes/class-admin.php:342
61
- #. translators: text used for support forum link
62
- msgid "Support"
63
- msgstr ""
64
-
65
- #: includes/class-admin.php:344
66
- #. translators: text used for reviews link
67
- msgid "Rate"
68
- msgstr ""
69
-
70
- #: includes/class-admin.php:346
71
- #. translators: text used for follow on twitter link
72
- msgid "Follow"
73
- msgstr ""
74
-
75
- #: includes/class-admin.php:348
76
- #. translators: text used for donation link
77
- msgid "Donate"
78
- msgstr ""
79
-
80
- #: includes/class-admin.php:368
81
- #. translators: text used for the icon that shows the plugin links
82
- msgid "About Black Studio TinyMCE Widget plugin"
83
- msgstr ""
84
-
85
- #: includes/class-admin.php:460
86
- #. translators: warning message shown when when visual editor is disabled in
87
- #. current user's profile settings
88
- msgid ""
89
- "Visual Editor is disabled in your Profile settings. You need to enable it "
90
- "in order to use the Visual Editor widget at its full potential."
91
- msgstr ""
92
-
93
- #: includes/class-widget.php:27
94
- #. translators: title of the widget
95
- msgid "Visual Editor"
96
- msgstr ""
97
-
98
- #: includes/class-widget.php:29
99
- #. translators: description of the widget, shown in available widgets
100
- msgid "Arbitrary text or HTML with visual editor"
101
- msgstr ""
102
-
103
- #. Description of the plugin/theme
104
- msgid ""
105
- "Adds a new \"Visual Editor\" widget type based on the native WordPress "
106
- "TinyMCE editor."
107
msgstr ""
1
+ # Copyright (C) 2017 Black Studio
2
+ # This file is distributed under the GPLv3.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Black Studio TinyMCE Widget 2.5.0\n"
6
+ "Report-Msgid-Bugs-To: "
7
+ "https://github.com/black-studio/black-studio-tinymce-widget/issues\n"
8
+ "POT-Creation-Date: 2017-09-30 22:53:41+00:00\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=utf-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: Black Studio <info@blackstudio.it>\n"
14
+ "Language-Team: Black Studio <info@blackstudio.it>\n"
15
+ "X-Generator: grunt-wp-i18n 0.4.9\n"
16
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Poedit-Language: English\n"
19
+ "X-Poedit-Country: United States\n"
20
+ "X-Poedit-SourceCharset: utf-8\n"
21
+ "X-Poedit-KeywordsList: "
22
+ "__;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_"
23
+ "x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
24
+ "X-Poedit-Bookmarks: \n"
25
+ "X-Poedit-SearchPath-0: .\n"
26
+ "X-Textdomain-Support: yes\n"
27
+
28
+ #: black-studio-tinymce-widget.php:281
29
+ #. translators: error message shown when multiple instance of the plugin are
30
+ #. detected
31
+ msgid ""
32
+ "ERROR: Multiple instances of the Black Studio TinyMCE Widget plugin were "
33
+ "detected. Please activate only one instance at a time."
34
+ msgstr ""
35
+
36
+ #: includes/class-admin-pointer.php:167
37
+ #. translators: text for the dismissable admin pointer tooltip
38
+ msgid ""
39
+ "The Visual Editor widget allows you to insert rich text and media objects "
40
+ "in your sidebars"
41
+ msgstr ""
42
+
43
+ #: includes/class-admin.php:250
44
+ #. translators: error message shown when a duplicated widget ID is detected
45
+ msgid ""
46
+ "ERROR: Duplicate widget ID detected. To avoid content loss, please create a "
47
+ "new widget with the same content and then delete this one."
48
+ msgstr ""
49
+
50
+ #: includes/class-admin.php:338
51
+ #. translators: text used for plugin home link
52
+ msgid "Home"
53
+ msgstr ""
54
+
55
+ #: includes/class-admin.php:340
56
+ #. translators: text used for support faq link
57
+ msgid "FAQ"
58
+ msgstr ""
59
+
60
+ #: includes/class-admin.php:342
61
+ #. translators: text used for support forum link
62
+ msgid "Support"
63
+ msgstr ""
64
+
65
+ #: includes/class-admin.php:344
66
+ #. translators: text used for reviews link
67
+ msgid "Rate"
68
+ msgstr ""
69
+
70
+ #: includes/class-admin.php:346
71
+ #. translators: text used for follow on twitter link
72
+ msgid "Follow"
73
+ msgstr ""
74
+
75
+ #: includes/class-admin.php:348
76
+ #. translators: text used for donation link
77
+ msgid "Donate"
78
+ msgstr ""
79
+
80
+ #: includes/class-admin.php:368
81
+ #. translators: text used for the icon that shows the plugin links
82
+ msgid "About Black Studio TinyMCE Widget plugin"
83
+ msgstr ""
84
+
85
+ #: includes/class-admin.php:460
86
+ #. translators: warning message shown when when visual editor is disabled in
87
+ #. current user's profile settings
88
+ msgid ""
89
+ "Visual Editor is disabled in your Profile settings. You need to enable it "
90
+ "in order to use the Visual Editor widget at its full potential."
91
+ msgstr ""
92
+
93
+ #: includes/class-widget.php:27
94
+ #. translators: title of the widget
95
+ msgid "Visual Editor"
96
+ msgstr ""
97
+
98
+ #: includes/class-widget.php:29
99
+ #. translators: description of the widget, shown in available widgets
100
+ msgid "Arbitrary text or HTML with visual editor"
101
+ msgstr ""
102
+
103
+ #. Description of the plugin/theme
104
+ msgid ""
105
+ "Adds a new \"Visual Editor\" widget type based on the native WordPress "
106
+ "TinyMCE editor."
107
msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.blackstudio.it/en/wordpress-plugins/black-studio-tinymce
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.1
6
Tested up to: 4.8
7
- Stable tag: 2.5.0
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl.html
10
@@ -189,6 +189,9 @@ DELETE FROM wp_usermeta WHERE meta_key LIKE '_bstw%';
189
190
== Changelog ==
191
192
= 2.5.0 (2017-10-01) =
193
* Fixed compatibility issue with Elementor Page Builder plugin (auto-disabled when editing a page with Elementor)
194
* Fixed compatibility issue with WP Page Widget and WPML (widgets added in a page will not be translated)
@@ -485,5 +488,5 @@ DELETE FROM wp_usermeta WHERE meta_key LIKE '_bstw%';
485
486
== Upgrade Notice ==
487
488
- = 2.5.0 =
489
Version 2.x is a major update. If you are upgrading from version 1.x please ensure to backup your database before upgrading.
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.1
6
Tested up to: 4.8
7
+ Stable tag: 2.5.1
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl.html
10
189
190
== Changelog ==
191
192
+ = 2.5.1 (2017-10-01) =
193
+ *Hotfix for Page Builder / Elementor compatibility
194
+
195
= 2.5.0 (2017-10-01) =
196
* Fixed compatibility issue with Elementor Page Builder plugin (auto-disabled when editing a page with Elementor)
197
* Fixed compatibility issue with WP Page Widget and WPML (widgets added in a page will not be translated)
488
489
== Upgrade Notice ==
490
491
+ = 2.5.1 =
492
Version 2.x is a major update. If you are upgrading from version 1.x please ensure to backup your database before upgrading.