Black Studio TinyMCE Widget - Version 2.2.3

Version Description

(2015-02-17) = * Fixed bug on reordering gallery images * Added czech and lithuanian translations (courtesy of WP-Translation.org team on Transifex)

Download this release

Release Info

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

Code changes from version 2.2.2 to 2.2.3

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.2.2
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.2.2';
39
40
/**
41
* The single instance of the plugin class
@@ -161,7 +161,6 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Plugin' ) ) {
161
* @uses get_bloginfo()
162
*
163
* @global object $wp_embed
164
- * @return void
165
* @since 2.0.0
166
*/
167
protected function __construct() {
@@ -282,7 +281,7 @@ else {
282
}
283
}
284
add_action( 'admin_notices', 'bstw_multiple_notice' );
285
-
286
} // END function_exists bstw_multiple_notice check
287
288
} // END else function_exists bstw check
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.2.3
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.2.3';
39
40
/**
41
* The single instance of the plugin class
161
* @uses get_bloginfo()
162
*
163
* @global object $wp_embed
164
* @since 2.0.0
165
*/
166
protected function __construct() {
281
}
282
}
283
add_action( 'admin_notices', 'bstw_multiple_notice' );
284
+
285
} // END function_exists bstw_multiple_notice check
286
287
} // END else function_exists bstw check
css/black-studio-tinymce-widget-pre33.min.css CHANGED
@@ -1,2 +1,2 @@
1
- /* Black Studio TinyMCE Widget - v2.2.2 */
2
.bstw-links{font-size:11px;margin-top:-3px;text-align:right;position:absolute;right:18px}.bstw-links .icon-plugins{float:right;padding:3px 6px;margin:-8px -8px 0 -2px;background:url(../../../../wp-admin/images/menu.png) -180px -33px no-repeat;width:16px;height:16px}.bstw-links .bstw-links-list{display:none}.bstw-links a{text-decoration:none}#mce_fullscreen_container{background-color:#fff}#wp-black-studio-tinymce-widget-wrap{display:none}#TB_overlay,#TB_window{z-index:999999}.wp-editor-container{border-style:solid;border-width:1px;border-collapse:separate;-moz-border-radius:3px 3px 0 0;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;border-color:#ccc #ccc #dfdfdf;clear:both}.wp-switch-editor{height:18px;margin:5px 5px 0 0;padding:4px 5px 2px;float:right;cursor:pointer;border-width:1px;border-style:solid;-moz-border-radius:3px 3px 0 0;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;background-color:#f1f1f1;border-color:#dfdfdf #dfdfdf #ccc;color:#999;position:relative;top:1px}.html-active .switch-html,.tmce-active .switch-tmce{border-color:#ccc #ccc #e9e9e9;background-color:#e9e9e9;color:#333}.wp-media-buttons{cursor:default;padding:8px 8px 0}.wp-media-buttons a{cursor:pointer;padding:0 0 5px 10px}.wp-media-buttons img{vertical-align:middle}.wp_themeSkin .mceStatusbar{border-color:#dfdfdf}
1
+ /* Black Studio TinyMCE Widget - v2.2.3 */
2
.bstw-links{font-size:11px;margin-top:-3px;text-align:right;position:absolute;right:18px}.bstw-links .icon-plugins{float:right;padding:3px 6px;margin:-8px -8px 0 -2px;background:url(../../../../wp-admin/images/menu.png) -180px -33px no-repeat;width:16px;height:16px}.bstw-links .bstw-links-list{display:none}.bstw-links a{text-decoration:none}#mce_fullscreen_container{background-color:#fff}#wp-black-studio-tinymce-widget-wrap{display:none}#TB_overlay,#TB_window{z-index:999999}.wp-editor-container{border-style:solid;border-width:1px;border-collapse:separate;-moz-border-radius:3px 3px 0 0;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;border-color:#ccc #ccc #dfdfdf;clear:both}.wp-switch-editor{height:18px;margin:5px 5px 0 0;padding:4px 5px 2px;float:right;cursor:pointer;border-width:1px;border-style:solid;-moz-border-radius:3px 3px 0 0;-webkit-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;-khtml-border-top-right-radius:3px;-khtml-border-top-left-radius:3px;border-top-right-radius:3px;border-top-left-radius:3px;background-color:#f1f1f1;border-color:#dfdfdf #dfdfdf #ccc;color:#999;position:relative;top:1px}.html-active .switch-html,.tmce-active .switch-tmce{border-color:#ccc #ccc #e9e9e9;background-color:#e9e9e9;color:#333}.wp-media-buttons{cursor:default;padding:8px 8px 0}.wp-media-buttons a{cursor:pointer;padding:0 0 5px 10px}.wp-media-buttons img{vertical-align:middle}.wp_themeSkin .mceStatusbar{border-color:#dfdfdf}
css/black-studio-tinymce-widget.min.css CHANGED
@@ -1,2 +1,2 @@
1
- /* Black Studio TinyMCE Widget - v2.2.2 */
2
.bstw-links{font-size:11px;margin-top:-3px;text-align:right;position:absolute;right:18px}.rtl .bstw-links{text-align:left;right:auto;left:18px}.bstw-links .icon16:before{padding:0}.bstw-links .icon16{float:right;padding:3px 6px;margin:-6px -8px 0 -2px}.rtl .bstw-links .icon16{float:left;margin:-6px -2px 0 -8px}.bstw-links .bstw-links-list{display:none}.bstw-links a{text-decoration:none}.bstw-loading{position:absolute;left:0;right:0;top:0;bottom:0;background-color:#fff;background-image:url(../../../../wp-admin/images/loading.gif);background-position:center center;background-repeat:no-repeat;z-index:100000;display:none;opacity:.5}#wp-black-studio-tinymce-widget-wrap{display:none}div[id*=black-studio-tinymce] .wp-editor-wrap{margin-bottom:1em}#available-widgets [class*=black-studio-tinymce] .widget-title:before{content:"\f116"}.wp-customizer .mce-floatpanel.mce-popover{z-index:500000!important}div[id*=black-studio-tinymce] .mce-wp-fullscreen{display:none}.ui-dialog.panels-admin-dialog{z-index:100002!important}#TB_overlay,#TB_window{z-index:999999!important}.media-modal{z-index:1000100!important}body.wait,body.wait *{cursor:wait!important}#zedity_content_overlay{z-index:100000!important}.mce-rtl .mce-colorbutton button{padding-right:3px!important;padding-left:3px!important}.mce-rtl .mce-colorbutton .mce-preview{margin:0!important;padding:0!important}
1
+ /* Black Studio TinyMCE Widget - v2.2.3 */
2
.bstw-links{font-size:11px;margin-top:-3px;text-align:right;position:absolute;right:18px}.rtl .bstw-links{text-align:left;right:auto;left:18px}.bstw-links .icon16:before{padding:0}.bstw-links .icon16{float:right;padding:3px 6px;margin:-6px -8px 0 -2px}.rtl .bstw-links .icon16{float:left;margin:-6px -2px 0 -8px}.bstw-links .bstw-links-list{display:none}.bstw-links a{text-decoration:none}.bstw-loading{position:absolute;left:0;right:0;top:0;bottom:0;background-color:#fff;background-image:url(../../../../wp-admin/images/loading.gif);background-position:center center;background-repeat:no-repeat;z-index:100000;display:none;opacity:.5}#wp-black-studio-tinymce-widget-wrap{display:none}div[id*=black-studio-tinymce] .wp-editor-wrap{margin-bottom:1em}#available-widgets [class*=black-studio-tinymce] .widget-title:before{content:"\f116"}.wp-customizer .mce-floatpanel.mce-popover{z-index:500000!important}div[id*=black-studio-tinymce] .mce-wp-fullscreen{display:none}.ui-dialog.panels-admin-dialog{z-index:100002!important}#TB_overlay,#TB_window{z-index:999999!important}.media-modal{z-index:1000100!important}body.wait,body.wait *{cursor:wait!important}#zedity_content_overlay{z-index:100000!important}.mce-rtl .mce-colorbutton button{padding-right:3px!important;padding-left:3px!important}.mce-rtl .mce-colorbutton .mce-preview{margin:0!important;padding:0!important}
includes/class-admin-pointer.php CHANGED
@@ -46,7 +46,6 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Admin_Pointer' ) ) {
46
* @uses get_bloginfo()
47
*
48
* @global object $wp_embed
49
- * @return void
50
* @since 2.0.0
51
*/
52
protected function __construct() {
46
* @uses get_bloginfo()
47
*
48
* @global object $wp_embed
49
* @since 2.0.0
50
*/
51
protected function __construct() {
includes/class-admin.php CHANGED
@@ -54,7 +54,6 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Admin' ) ) {
54
* @uses get_bloginfo()
55
*
56
* @global object $wp_embed
57
- * @return void
58
* @since 2.0.0
59
*/
60
protected function __construct() {
@@ -284,7 +283,7 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Admin' ) ) {
284
* @return void
285
* @since 2.1.7
286
*/
287
- function fix_the_editor_content_filter() {
288
remove_filter( 'the_editor_content', 'wp_htmledit_pre' );
289
remove_filter( 'the_editor_content', 'wp_richedit_pre' );
290
}
@@ -295,7 +294,7 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Admin' ) ) {
295
* @return void
296
* @since 2.2.1
297
*/
298
- function wp_tiny_mce_init() {
299
$script = 'black-studio-tinymce-widget-setup';
300
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
301
echo "\t\t" . '<script type="text/javascript" src="' . plugins_url( 'js/' . $script . $suffix . '.js', dirname( __FILE__ ) ) . '"></script>' . "\n"; // xss ok
54
* @uses get_bloginfo()
55
*
56
* @global object $wp_embed
57
* @since 2.0.0
58
*/
59
protected function __construct() {
283
* @return void
284
* @since 2.1.7
285
*/
286
+ public function fix_the_editor_content_filter() {
287
remove_filter( 'the_editor_content', 'wp_htmledit_pre' );
288
remove_filter( 'the_editor_content', 'wp_richedit_pre' );
289
}
294
* @return void
295
* @since 2.2.1
296
*/
297
+ public function wp_tiny_mce_init() {
298
$script = 'black-studio-tinymce-widget-setup';
299
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
300
echo "\t\t" . '<script type="text/javascript" src="' . plugins_url( 'js/' . $script . $suffix . '.js', dirname( __FILE__ ) ) . '"></script>' . "\n"; // xss ok
includes/class-compatibility-plugins.php CHANGED
@@ -42,7 +42,6 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Compatibility_Plugins' ) ) {
42
* Class constructor
43
*
44
* @param string[] $plugins
45
- * @return void
46
* @since 2.0.0
47
*/
48
protected function __construct( $plugins ) {
@@ -153,7 +152,7 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Compatibility_Plugins' ) ) {
153
public function wp_page_widget_enable_pages( $pages ) {
154
$pages[] = 'post-new.php';
155
$pages[] = 'post.php';
156
- if ( isset( $_GET['action'] ) && $_GET['action'] == 'edit' ) {
157
$pages[] = 'edit-tags.php';
158
}
159
if ( isset( $_GET['page'] ) && in_array( $_GET['page'], array( 'pw-front-page', 'pw-search-page' ) ) ) {
@@ -230,7 +229,7 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Compatibility_Plugins' ) ) {
230
* @since 2.0.0
231
*/
232
public function siteorigin_panels_widget_object( $the_widget ) {
233
- if ( isset( $the_widget->id_base ) && $the_widget->id_base == 'black-studio-tinymce' ) {
234
$the_widget->number = '';
235
}
236
return $the_widget;
@@ -282,7 +281,7 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Compatibility_Plugins' ) ) {
282
public function siteorigin_panels_enable_pages( $pages ) {
283
$pages[] = 'post-new.php';
284
$pages[] = 'post.php';
285
- if ( isset( $_GET['page'] ) && $_GET['page'] == 'so_panels_home_page' ) {
286
$pages[] = 'themes.php';
287
}
288
return $pages;
42
* Class constructor
43
*
44
* @param string[] $plugins
45
* @since 2.0.0
46
*/
47
protected function __construct( $plugins ) {
152
public function wp_page_widget_enable_pages( $pages ) {
153
$pages[] = 'post-new.php';
154
$pages[] = 'post.php';
155
+ if ( isset( $_GET['action'] ) && 'edit' == $_GET['action'] ) {
156
$pages[] = 'edit-tags.php';
157
}
158
if ( isset( $_GET['page'] ) && in_array( $_GET['page'], array( 'pw-front-page', 'pw-search-page' ) ) ) {
229
* @since 2.0.0
230
*/
231
public function siteorigin_panels_widget_object( $the_widget ) {
232
+ if ( isset( $the_widget->id_base ) && 'black-studio-tinymce' == $the_widget->id_base ) {
233
$the_widget->number = '';
234
}
235
return $the_widget;
281
public function siteorigin_panels_enable_pages( $pages ) {
282
$pages[] = 'post-new.php';
283
$pages[] = 'post.php';
284
+ if ( isset( $_GET['page'] ) && 'so_panels_home_page' == $_GET['page'] ) {
285
$pages[] = 'themes.php';
286
}
287
return $pages;
includes/class-compatibility-wordpress.php CHANGED
@@ -43,7 +43,6 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Compatibility_Wordpress' ) ) {
43
* @uses get_bloginfo()
44
* @uses add_action()
45
*
46
- * @param object $plugin
47
* @since 2.0.0
48
*/
49
protected function __construct() {
@@ -235,7 +234,7 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Compatibility_Wordpress' ) ) {
235
*/
236
public function wp_pre_35_upload_iframe_src( $upload_iframe_src ) {
237
global $pagenow;
238
- if ( $pagenow == 'widgets.php' || ( $pagenow == 'admin-ajax.php' && isset( $_POST['id_base'] ) && $_POST['id_base'] == 'black-studio-tinymce' ) ) {
239
$upload_iframe_src = str_replace( 'post_id=0', '', $upload_iframe_src );
240
}
241
return $upload_iframe_src;
43
* @uses get_bloginfo()
44
* @uses add_action()
45
*
46
* @since 2.0.0
47
*/
48
protected function __construct() {
234
*/
235
public function wp_pre_35_upload_iframe_src( $upload_iframe_src ) {
236
global $pagenow;
237
+ if ( $pagenow == 'widgets.php' || ( 'admin-ajax.php' == $pagenow && isset( $_POST['id_base'] ) && 'black-studio-tinymce' == $_POST['id_base'] ) ) {
238
$upload_iframe_src = str_replace( 'post_id=0', '', $upload_iframe_src );
239
}
240
return $upload_iframe_src;
includes/class-compatibility.php CHANGED
@@ -77,7 +77,6 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Compatibility' ) ) {
77
* Class constructor
78
*
79
* @global object $wp_embed
80
- * @return void
81
* @since 2.0.0
82
*/
83
protected function __construct() {
77
* Class constructor
78
*
79
* @global object $wp_embed
80
* @since 2.0.0
81
*/
82
protected function __construct() {
includes/class-text-filters.php CHANGED
@@ -44,7 +44,6 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Text_Filters' ) ) {
44
* @uses get_option()
45
*
46
* @global object $wp_embed
47
- * @return void
48
* @since 2.0.0
49
*/
50
protected function __construct() {
@@ -110,7 +109,7 @@ if ( ! class_exists( 'Black_Studio_TinyMCE_Text_Filters' ) ) {
110
* Apply smilies conversion to widget text
111
*
112
* @uses convert_smilies()
113
- *
114
* @param string $text
115
* @return string
116
* @since 2.0.0
44
* @uses get_option()
45
*
46
* @global object $wp_embed
47
* @since 2.0.0
48
*/
49
protected function __construct() {
109
* Apply smilies conversion to widget text
110
*
111
* @uses convert_smilies()
112
+ *
113
* @param string $text
114
* @return string
115
* @since 2.0.0
includes/class-widget.php CHANGED
@@ -20,7 +20,6 @@ if ( ! class_exists( 'WP_Widget_Black_Studio_TinyMCE' ) ) {
20
* Widget Class constructor
21
*
22
* @uses WP_Widget::__construct()
23
- * @return void
24
* @since 0.5
25
*/
26
public function __construct() {
@@ -119,14 +118,14 @@ if ( ! class_exists( 'WP_Widget_Black_Studio_TinyMCE' ) ) {
119
do_action( 'black_studio_tinymce_before_editor' );
120
?>
121
<input id="<?php echo $this->get_field_id( 'type' ); ?>" name="<?php echo $this->get_field_name( 'type' ); ?>" type="hidden" value="<?php echo esc_attr( $instance['type'] ); ?>" />
122
- <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
123
- <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>
124
<?php
125
do_action( 'black_studio_tinymce_editor', $instance['text'], $this->get_field_id( 'text' ), $this->get_field_name( 'text' ), $instance['type'] );
126
do_action( 'black_studio_tinymce_after_editor' );
127
?>
128
- <input id="<?php echo $this->get_field_id( 'filter' ); ?>-hidden" name="<?php echo $this->get_field_name( 'filter' ); ?>" type="hidden" value="0" />
129
- <p><input id="<?php echo $this->get_field_id( 'filter' ); ?>" name="<?php echo $this->get_field_name( 'filter' ); ?>" type="checkbox" value="1" <?php checked( $instance['filter'] ); ?> />&nbsp;<label for="<?php echo $this->get_field_id( 'filter' ); ?>"><?php _e( 'Automatically add paragraphs' ); ?></label></p>
130
<?php
131
}
132
20
* Widget Class constructor
21
*
22
* @uses WP_Widget::__construct()
23
* @since 0.5
24
*/
25
public function __construct() {
118
do_action( 'black_studio_tinymce_before_editor' );
119
?>
120
<input id="<?php echo $this->get_field_id( 'type' ); ?>" name="<?php echo $this->get_field_name( 'type' ); ?>" type="hidden" value="<?php echo esc_attr( $instance['type'] ); ?>" />
121
+ <p><label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:' ); ?></label>
122
+ <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p>
123
<?php
124
do_action( 'black_studio_tinymce_editor', $instance['text'], $this->get_field_id( 'text' ), $this->get_field_name( 'text' ), $instance['type'] );
125
do_action( 'black_studio_tinymce_after_editor' );
126
?>
127
+ <input id="<?php echo esc_attr( $this->get_field_id( 'filter' ) ); ?>-hidden" name="<?php echo esc_attr( $this->get_field_name( 'filter' ) ); ?>" type="hidden" value="0" />
128
+ <p><input id="<?php echo esc_attr( $this->get_field_id( 'filter' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'filter' ) ); ?>" type="checkbox" value="1" <?php checked( $instance['filter'] ); ?> />&nbsp;<label for="<?php echo esc_attr( $this->get_field_id( 'filter' ) ); ?>"><?php _e( 'Automatically add paragraphs' ); ?></label></p>
129
<?php
130
}
131
js/black-studio-tinymce-widget-pointer.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /* Black Studio TinyMCE Widget - v2.2.2 */
2
jQuery(document).ready(function(a){function b(b){var c=bstw_pointers.pointers[b],d=a.extend(c.options,{close:function(){a.post(ajaxurl,{pointer:c.pointer_id,action:"dismiss-wp-pointer"})}});a(c.target).pointer(d).pointer("open")}b(0)});
1
+ /* Black Studio TinyMCE Widget - v2.2.3 */
2
jQuery(document).ready(function(a){function b(b){var c=bstw_pointers.pointers[b],d=a.extend(c.options,{close:function(){a.post(ajaxurl,{pointer:c.pointer_id,action:"dismiss-wp-pointer"})}});a(c.target).pointer(d).pointer("open")}b(0)});
js/black-studio-tinymce-widget-pre33.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /* Black Studio TinyMCE Widget - v2.2.2 */
2
!function(a){function b(c){var d=null;return"string"==typeof c?d=c:"object"==typeof c&&c instanceof jQuery&&(d=a("textarea[id^=widget-black-studio-tinymce]",c.closest(bstw_data.container_selectors)).attr("id")),{activate:function(){if(a("#"+d).addClass("mceEditor"),"object"==typeof tinymce&&"function"==typeof tinymce.execCommand){this.deactivate();try{tinymce.execCommand("mceAddControl",!1,d)}catch(b){window.alert(b)}}return this},deactivate:function(){if("object"==typeof tinymce&&"function"==typeof tinymce.execCommand&&this.is_tinymce_active()){var b=tinymce.get(d).getContent();tinymce.get(d).remove(),a("#"+d).val(b)}return this},activate_after_open:function(){return"visual"===this.get_mode()&&(0===a("div.widget:has(#"+d+") :animated").size()&&!this.is_tinymce_active()&&this.is_textearea_visible()?this.set_mode("visual"):this.is_tinymce_active()?this.set_mode("visual"):setTimeout(function(){b(d).activate_after_open()},100)),this},activate_after_ajax:function(){return"visual"===this.get_mode()&&(0===a.active&&!this.is_tinymce_active()&&this.is_textearea_visible()?this.set_mode("visual"):this.is_widget_inside_visible()&&!this.is_tinymce_active()&&setTimeout(function(){b(d).activate_after_ajax()},100)),this},get_widget:function(){return a("#"+d).closest("div.widget")},get_widget_inside:function(){return a("#"+d).closest("div.widget-inside")},get_editor_wrap:function(){return a("#"+d).closest("div.wp-editor-wrap")},get_textarea:function(){return a("#"+d)},get_id:function(){return d},get_tinymce:function(){return tinymce.get(d)},get_mode:function(){return a("input[id^=widget-black-studio-tinymce][id$=type]",this.get_widget_inside()).val()},set_mode:function(b){return"visual"===b&&(this.get_editor_wrap().removeClass("html-active").addClass("tmce-active"),this.activate()),"html"===b&&(this.get_editor_wrap().removeClass("tmce-active").addClass("html-active"),this.deactivate()),a("input[id^=widget-black-studio-tinymce][id$=type]",this.get_widget_inside()).val(b),this},is_tinymce_active:function(){return"object"==typeof tinymce&&"object"==typeof tinymce.get(d)&&null!==tinymce.get(d)},is_textearea_visible:function(){return a("#"+d).is(":visible")},is_widget_inside_visible:function(){return a(" div.widget-inside:has(#"+d+")").is(":visible")},check_duplicates:function(){return a('[name="'+this.get_textarea().attr("name")+'"]').size()>1&&0===a("div.error",this.get_widget_inside()).length&&this.get_widget_inside().prepend('<div class="error"><strong>'+bstw_data.error_duplicate_id+"</strong></div>"),this},fix_css:function(){return this.get_widget().css("position","relative").css("z-index","100000"),a("#wpbody-content").css("overflow","visible"),this},set_media_target:function(){return a(".insert-media",this.get_widget()).data("editor",d),this}}}a(document).ready(function(){a("div.widget[id*=black-studio-tinymce] .widget-title, div.widget[id*=black-studio-tinymce] a.widget-action").live("click",function(){b(a(this)).check_duplicates().fix_css().set_media_target().activate_after_open(),a("input[name=savewidget]",b(a(this)).get_widget()).click(function(){b(a(this)).is_tinymce_active()&&b(a(this)).deactivate(),a(this).unbind("ajaxSuccess").ajaxSuccess(function(){b(a(this)).activate_after_ajax()})})}),a("div.widget[id*=black-studio-tinymce] input[name=savewidget]").live("click",function(){b(a(this)).is_tinymce_active()&&b(a(this)).deactivate(),a(this).unbind("ajaxSuccess").ajaxSuccess(function(){b(a(this)).activate_after_ajax()})}),a("a[id^=widget-black-studio-tinymce][id$=tmce]").live("click",function(){b(a(this)).set_mode("visual")}),a("a[id^=widget-black-studio-tinymce][id$=html]").live("click",function(){b(a(this)).set_mode("html")}),a(".wp-media-buttons a").live("click",function(){edCanvas=b(a(this)).get_textarea().get(),wpActiveEditor=b(a(this)).get_id()}),a("body.widgets_access").size()>0&&b(a("textarea[id^=widget-black-studio-tinymce]").attr("id")).activate_after_open(),a(".bstw-links-icon").live("click",function(b){b.preventDefault(),a(this).closest(".bstw-links").children(".bstw-links-list").toggle()})})}(jQuery);
1
+ /* Black Studio TinyMCE Widget - v2.2.3 */
2
!function(a){function b(c){var d=null;return"string"==typeof c?d=c:"object"==typeof c&&c instanceof jQuery&&(d=a("textarea[id^=widget-black-studio-tinymce]",c.closest(bstw_data.container_selectors)).attr("id")),{activate:function(){if(a("#"+d).addClass("mceEditor"),"object"==typeof tinymce&&"function"==typeof tinymce.execCommand){this.deactivate();try{tinymce.execCommand("mceAddControl",!1,d)}catch(b){window.alert(b)}}return this},deactivate:function(){if("object"==typeof tinymce&&"function"==typeof tinymce.execCommand&&this.is_tinymce_active()){var b=tinymce.get(d).getContent();tinymce.get(d).remove(),a("#"+d).val(b)}return this},activate_after_open:function(){return"visual"===this.get_mode()&&(0===a("div.widget:has(#"+d+") :animated").size()&&!this.is_tinymce_active()&&this.is_textearea_visible()?this.set_mode("visual"):this.is_tinymce_active()?this.set_mode("visual"):setTimeout(function(){b(d).activate_after_open()},100)),this},activate_after_ajax:function(){return"visual"===this.get_mode()&&(0===a.active&&!this.is_tinymce_active()&&this.is_textearea_visible()?this.set_mode("visual"):this.is_widget_inside_visible()&&!this.is_tinymce_active()&&setTimeout(function(){b(d).activate_after_ajax()},100)),this},get_widget:function(){return a("#"+d).closest("div.widget")},get_widget_inside:function(){return a("#"+d).closest("div.widget-inside")},get_editor_wrap:function(){return a("#"+d).closest("div.wp-editor-wrap")},get_textarea:function(){return a("#"+d)},get_id:function(){return d},get_tinymce:function(){return tinymce.get(d)},get_mode:function(){return a("input[id^=widget-black-studio-tinymce][id$=type]",this.get_widget_inside()).val()},set_mode:function(b){return"visual"===b&&(this.get_editor_wrap().removeClass("html-active").addClass("tmce-active"),this.activate()),"html"===b&&(this.get_editor_wrap().removeClass("tmce-active").addClass("html-active"),this.deactivate()),a("input[id^=widget-black-studio-tinymce][id$=type]",this.get_widget_inside()).val(b),this},is_tinymce_active:function(){return"object"==typeof tinymce&&"object"==typeof tinymce.get(d)&&null!==tinymce.get(d)},is_textearea_visible:function(){return a("#"+d).is(":visible")},is_widget_inside_visible:function(){return a(" div.widget-inside:has(#"+d+")").is(":visible")},check_duplicates:function(){return a('[name="'+this.get_textarea().attr("name")+'"]').size()>1&&0===a("div.error",this.get_widget_inside()).length&&this.get_widget_inside().prepend('<div class="error"><strong>'+bstw_data.error_duplicate_id+"</strong></div>"),this},fix_css:function(){return this.get_widget().css("position","relative").css("z-index","100000"),a("#wpbody-content").css("overflow","visible"),this},set_media_target:function(){return a(".insert-media",this.get_widget()).data("editor",d),this}}}a(document).ready(function(){a("div.widget[id*=black-studio-tinymce] .widget-title, div.widget[id*=black-studio-tinymce] a.widget-action").live("click",function(){b(a(this)).check_duplicates().fix_css().set_media_target().activate_after_open(),a("input[name=savewidget]",b(a(this)).get_widget()).click(function(){b(a(this)).is_tinymce_active()&&b(a(this)).deactivate(),a(this).unbind("ajaxSuccess").ajaxSuccess(function(){b(a(this)).activate_after_ajax()})})}),a("div.widget[id*=black-studio-tinymce] input[name=savewidget]").live("click",function(){b(a(this)).is_tinymce_active()&&b(a(this)).deactivate(),a(this).unbind("ajaxSuccess").ajaxSuccess(function(){b(a(this)).activate_after_ajax()})}),a("a[id^=widget-black-studio-tinymce][id$=tmce]").live("click",function(){b(a(this)).set_mode("visual")}),a("a[id^=widget-black-studio-tinymce][id$=html]").live("click",function(){b(a(this)).set_mode("html")}),a(".wp-media-buttons a").live("click",function(){edCanvas=b(a(this)).get_textarea().get(),wpActiveEditor=b(a(this)).get_id()}),a("body.widgets_access").size()>0&&b(a("textarea[id^=widget-black-studio-tinymce]").attr("id")).activate_after_open(),a(".bstw-links-icon").live("click",function(b){b.preventDefault(),a(this).closest(".bstw-links").children(".bstw-links-list").toggle()})})}(jQuery);
js/black-studio-tinymce-widget-pre39.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /* Black Studio TinyMCE Widget - v2.2.2 */
2
!function(a){function b(c){var d=null;return"string"==typeof c?d=c:"object"==typeof c&&c instanceof jQuery&&(d=a("textarea[id^=widget-black-studio-tinymce]",c.closest(bstw_data.container_selectors)).attr("id")),{activate:function(){if(a("#"+d).addClass("mceEditor"),"object"==typeof tinymce&&"function"==typeof tinymce.execCommand){this.deactivate(),tinyMCEPreInit.mceInit[d]=tinyMCEPreInit.mceInit["black-studio-tinymce-widget"],tinyMCEPreInit.mceInit[d].selector="#"+d;try{tinymce.init(tinymce.extend({},tinyMCEPreInit.mceInit["black-studio-tinymce-widget"],tinyMCEPreInit.mceInit[d])),tinymce.execCommand("mceAddControl",!1,d)}catch(b){window.alert(b)}this.is_tinymce_active()&&"function"==typeof tinymce.get(d).on&&tinymce.get(d).on("keyup change",function(){var b=tinymce.get(d).getContent();a("#"+d).val(b).change()})}return this},deactivate:function(){if("object"==typeof tinymce&&"function"==typeof tinymce.execCommand&&this.is_tinymce_active()){var b=tinymce.get(d).getContent();tinymce.get(d).remove(),a("#"+d).val(b)}return this},activate_after_open:function(){return"visual"===this.get_mode()&&(0===a("div.widget:has(#"+d+") :animated").size()&&!this.is_tinymce_active()&&this.is_textearea_visible()?this.set_mode("visual"):this.is_tinymce_active()?this.set_mode("visual"):setTimeout(function(){b(d).activate_after_open()},100)),this},activate_after_ajax:function(){return"visual"===this.get_mode()&&(0===a.active&&!this.is_tinymce_active()&&this.is_textearea_visible()?this.set_mode("visual"):this.is_widget_inside_visible()&&!this.is_tinymce_active()&&setTimeout(function(){b(d).activate_after_ajax()},100)),this},get_widget:function(){return a("#"+d).closest("div.widget")},get_widget_inside:function(){return a("#"+d).closest("div.widget-inside")},get_editor_wrap:function(){return a("#"+d).closest("div.wp-editor-wrap")},get_textarea:function(){return a("#"+d)},get_id:function(){return d},get_tinymce:function(){return tinymce.get(d)},get_mode:function(){return a("input[id^=widget-black-studio-tinymce][id$=type]",this.get_widget_inside()).val()},set_mode:function(b){return"visual"===b&&(this.get_editor_wrap().removeClass("html-active").addClass("tmce-active"),this.activate()),"html"===b&&(this.get_editor_wrap().removeClass("tmce-active").addClass("html-active"),this.deactivate()),a("input[id^=widget-black-studio-tinymce][id$=type]",this.get_widget_inside()).val(b),this},is_tinymce_active:function(){return"object"==typeof tinymce&&"object"==typeof tinymce.get(d)&&null!==tinymce.get(d)},is_textearea_visible:function(){return a("#"+d).is(":visible")},is_widget_inside_visible:function(){return a(" div.widget-inside:has(#"+d+")").is(":visible")},check_duplicates:function(){return a('[name="'+this.get_textarea().attr("name")+'"]').size()>1&&0===a("div.error",this.get_widget_inside()).length&&this.get_widget_inside().prepend('<div class="error"><strong>'+bstw_data.error_duplicate_id+"</strong></div>"),this},fix_css:function(){return this.get_widget().css("position","relative").css("z-index","100000"),a("#wpbody-content").css("overflow","visible"),this},set_media_target:function(){return a(".insert-media",this.get_widget()).data("editor",d),this}}}a(document).ready(function(){a(document).on("click","div.widget[id*=black-studio-tinymce] .widget-title, div.widget[id*=black-studio-tinymce] a.widget-action",function(){if(b(a(this)).check_duplicates().fix_css().set_media_target().activate_after_open(),a("input[name=savewidget]",b(a(this)).get_widget()).on("click",function(){b(a(this)).is_tinymce_active()&&b(a(this)).deactivate(),a(this).unbind("ajaxSuccess").ajaxSuccess(function(){b(a(this)).activate_after_ajax()})}),!a(this).parents("#available-widgets").length){var c,d=parseInt(a("input[name=widget-width]",b(a(this)).get_widget()).val(),10),e=a(window).width(),f=b(a(this)).get_widget().parent().width(),g=parseInt(a("#wpcontent").css("margin-left"),10),h=!("undefined"==typeof isRtl||!isRtl);d+g+30>e&&(c=b(a(this)).get_widget().closest("div.widget-liquid-right").length?h?"margin-right":"margin-left":h?"margin-left":"margin-right",a(b(a(this)).get_widget()).css(c,f-(e-30-g)+"px"))}}),a("div.widget[id*=black-studio-tinymce] input[name=savewidget]").on("click",function(){b(a(this)).is_tinymce_active()&&b(a(this)).deactivate(),a(this).unbind("ajaxSuccess").ajaxSuccess(function(){b(a(this)).activate_after_ajax()})}),a(document).on("click","a[id^=widget-black-studio-tinymce][id$=tmce]",function(){b(a(this)).set_mode("visual")}),a(document).on("click","a[id^=widget-black-studio-tinymce][id$=html]",function(){b(a(this)).set_mode("html")}),a(document).on("widget-added",function(a,c){c.is("[id*=black-studio-tinymce]")&&(a.preventDefault(),b(c).activate_after_open())}),a(document).on("click",".wp-media-buttons a",function(){window.wpActiveEditor=b(a(this)).get_id()}),a("body.widgets_access").size()>0&&b(a("textarea[id^=widget-black-studio-tinymce]").attr("id")).activate_after_open(),a(document).on("click",".bstw-links-icon",function(b){b.preventDefault(),a(this).closest(".bstw-links").children(".bstw-links-list").toggle()})})}(jQuery);
1
+ /* Black Studio TinyMCE Widget - v2.2.3 */
2
!function(a){function b(c){var d=null;return"string"==typeof c?d=c:"object"==typeof c&&c instanceof jQuery&&(d=a("textarea[id^=widget-black-studio-tinymce]",c.closest(bstw_data.container_selectors)).attr("id")),{activate:function(){if(a("#"+d).addClass("mceEditor"),"object"==typeof tinymce&&"function"==typeof tinymce.execCommand){this.deactivate(),tinyMCEPreInit.mceInit[d]=tinyMCEPreInit.mceInit["black-studio-tinymce-widget"],tinyMCEPreInit.mceInit[d].selector="#"+d;try{tinymce.init(tinymce.extend({},tinyMCEPreInit.mceInit["black-studio-tinymce-widget"],tinyMCEPreInit.mceInit[d])),tinymce.execCommand("mceAddControl",!1,d)}catch(b){window.alert(b)}this.is_tinymce_active()&&"function"==typeof tinymce.get(d).on&&tinymce.get(d).on("keyup change",function(){var b=tinymce.get(d).getContent();a("#"+d).val(b).change()})}return this},deactivate:function(){if("object"==typeof tinymce&&"function"==typeof tinymce.execCommand&&this.is_tinymce_active()){var b=tinymce.get(d).getContent();tinymce.get(d).remove(),a("#"+d).val(b)}return this},activate_after_open:function(){return"visual"===this.get_mode()&&(0===a("div.widget:has(#"+d+") :animated").size()&&!this.is_tinymce_active()&&this.is_textearea_visible()?this.set_mode("visual"):this.is_tinymce_active()?this.set_mode("visual"):setTimeout(function(){b(d).activate_after_open()},100)),this},activate_after_ajax:function(){return"visual"===this.get_mode()&&(0===a.active&&!this.is_tinymce_active()&&this.is_textearea_visible()?this.set_mode("visual"):this.is_widget_inside_visible()&&!this.is_tinymce_active()&&setTimeout(function(){b(d).activate_after_ajax()},100)),this},get_widget:function(){return a("#"+d).closest("div.widget")},get_widget_inside:function(){return a("#"+d).closest("div.widget-inside")},get_editor_wrap:function(){return a("#"+d).closest("div.wp-editor-wrap")},get_textarea:function(){return a("#"+d)},get_id:function(){return d},get_tinymce:function(){return tinymce.get(d)},get_mode:function(){return a("input[id^=widget-black-studio-tinymce][id$=type]",this.get_widget_inside()).val()},set_mode:function(b){return"visual"===b&&(this.get_editor_wrap().removeClass("html-active").addClass("tmce-active"),this.activate()),"html"===b&&(this.get_editor_wrap().removeClass("tmce-active").addClass("html-active"),this.deactivate()),a("input[id^=widget-black-studio-tinymce][id$=type]",this.get_widget_inside()).val(b),this},is_tinymce_active:function(){return"object"==typeof tinymce&&"object"==typeof tinymce.get(d)&&null!==tinymce.get(d)},is_textearea_visible:function(){return a("#"+d).is(":visible")},is_widget_inside_visible:function(){return a(" div.widget-inside:has(#"+d+")").is(":visible")},check_duplicates:function(){return a('[name="'+this.get_textarea().attr("name")+'"]').size()>1&&0===a("div.error",this.get_widget_inside()).length&&this.get_widget_inside().prepend('<div class="error"><strong>'+bstw_data.error_duplicate_id+"</strong></div>"),this},fix_css:function(){return this.get_widget().css("position","relative").css("z-index","100000"),a("#wpbody-content").css("overflow","visible"),this},set_media_target:function(){return a(".insert-media",this.get_widget()).data("editor",d),this}}}a(document).ready(function(){a(document).on("click","div.widget[id*=black-studio-tinymce] .widget-title, div.widget[id*=black-studio-tinymce] a.widget-action",function(){if(b(a(this)).check_duplicates().fix_css().set_media_target().activate_after_open(),a("input[name=savewidget]",b(a(this)).get_widget()).on("click",function(){b(a(this)).is_tinymce_active()&&b(a(this)).deactivate(),a(this).unbind("ajaxSuccess").ajaxSuccess(function(){b(a(this)).activate_after_ajax()})}),!a(this).parents("#available-widgets").length){var c,d=parseInt(a("input[name=widget-width]",b(a(this)).get_widget()).val(),10),e=a(window).width(),f=b(a(this)).get_widget().parent().width(),g=parseInt(a("#wpcontent").css("margin-left"),10),h=!("undefined"==typeof isRtl||!isRtl);d+g+30>e&&(c=b(a(this)).get_widget().closest("div.widget-liquid-right").length?h?"margin-right":"margin-left":h?"margin-left":"margin-right",a(b(a(this)).get_widget()).css(c,f-(e-30-g)+"px"))}}),a("div.widget[id*=black-studio-tinymce] input[name=savewidget]").on("click",function(){b(a(this)).is_tinymce_active()&&b(a(this)).deactivate(),a(this).unbind("ajaxSuccess").ajaxSuccess(function(){b(a(this)).activate_after_ajax()})}),a(document).on("click","a[id^=widget-black-studio-tinymce][id$=tmce]",function(){b(a(this)).set_mode("visual")}),a(document).on("click","a[id^=widget-black-studio-tinymce][id$=html]",function(){b(a(this)).set_mode("html")}),a(document).on("widget-added",function(a,c){c.is("[id*=black-studio-tinymce]")&&(a.preventDefault(),b(c).activate_after_open())}),a(document).on("click",".wp-media-buttons a",function(){window.wpActiveEditor=b(a(this)).get_id()}),a("body.widgets_access").size()>0&&b(a("textarea[id^=widget-black-studio-tinymce]").attr("id")).activate_after_open(),a(document).on("click",".bstw-links-icon",function(b){b.preventDefault(),a(this).closest(".bstw-links").children(".bstw-links-list").toggle()})})}(jQuery);
js/black-studio-tinymce-widget-setup.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /* Black Studio TinyMCE Widget - v2.2.2 */
2
!function(a){function b(b){b.on("keyup change",function(){"visual"===bstw(b.id).get_mode()&&bstw(b.id).update_content(),a("#"+b.id).change()}),a("#"+b.id).addClass("active").removeClass("activating")}var c;for(c in tinyMCEPreInit.mceInit)c.search("black-studio-tinymce")>=0&&(tinyMCEPreInit.mceInit[c].setup=b)}(jQuery);
1
+ /* Black Studio TinyMCE Widget - v2.2.3 */
2
!function(a){function b(b){b.on("keyup change",function(){"visual"===bstw(b.id).get_mode()&&bstw(b.id).update_content(),a("#"+b.id).change()}),a("#"+b.id).addClass("active").removeClass("activating")}var c;for(c in tinyMCEPreInit.mceInit)c.search("black-studio-tinymce")>=0&&(tinyMCEPreInit.mceInit[c].setup=b)}(jQuery);
js/black-studio-tinymce-widget.js CHANGED
@@ -271,6 +271,9 @@ var bstw;
271
272
// Deactivate editor on drag & drop operations
273
$( document ).on( 'sortstart', function( event, ui ) {
274
var open_widgets_selectors = [
275
'body.wp-customizer .expanded > div[id*=black-studio-tinymce].widget', // Theme Customizer
276
'.widget-liquid-right div[id*=black-studio-tinymce].widget.open' // Widgets page
@@ -289,7 +292,7 @@ var bstw;
289
}
290
});
291
$( document ).on( 'sortupdate', function( event, ui ) {
292
- if ( event !== null && $( ui.item ).is( '.ui-draggable' ) ) {
293
return;
294
}
295
$( 'body' ).addClass( 'wait' );
@@ -300,7 +303,7 @@ var bstw;
300
$( 'body' ).removeClass( 'wait' );
301
}, 1000 );
302
});
303
-
304
// External events
305
if ( 'object' === typeof bstw_data.activate_events && bstw_data.activate_events.length > 0 ) {
306
$( document ).on( bstw_data.activate_events.join( ' ' ), function( event ) {
271
272
// Deactivate editor on drag & drop operations
273
$( document ).on( 'sortstart', function( event, ui ) {
274
+ if ( event !== null && ( ! $( ui.item ).is( '.widget' ) || $( ui.item ).is( '.ui-draggable' ) ) ) {
275
+ return;
276
+ }
277
var open_widgets_selectors = [
278
'body.wp-customizer .expanded > div[id*=black-studio-tinymce].widget', // Theme Customizer
279
'.widget-liquid-right div[id*=black-studio-tinymce].widget.open' // Widgets page
292
}
293
});
294
$( document ).on( 'sortupdate', function( event, ui ) {
295
+ if ( event !== null && ( ! $( ui.item ).is( '.widget' ) || $( ui.item ).is( '.ui-draggable' ) ) ) {
296
return;
297
}
298
$( 'body' ).addClass( 'wait' );
303
$( 'body' ).removeClass( 'wait' );
304
}, 1000 );
305
});
306
+
307
// External events
308
if ( 'object' === typeof bstw_data.activate_events && bstw_data.activate_events.length > 0 ) {
309
$( document ).on( bstw_data.activate_events.join( ' ' ), function( event ) {
js/black-studio-tinymce-widget.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /* Black Studio TinyMCE Widget - v2.2.2 */
2
- var bstw;!function(a){bstw=function(b){var c=null;return"string"==typeof b?c=b:"object"==typeof b&&b instanceof jQuery&&(c=a("textarea[id^=widget-black-studio-tinymce][id$=text]",b.closest(bstw_data.container_selectors)).attr("id")),{activate:function(b){if(b="undefined"!=typeof b?b:!0,!a("#"+c).hasClass("active")&&!a("#"+c).hasClass("activating")){if(a("#"+c).addClass("activating"),this.is_quicktags_configured()||(tinyMCEPreInit.qtInit[c]=tinyMCEPreInit.qtInit["black-studio-tinymce-widget"],tinyMCEPreInit.qtInit[c].id=c),!this.is_quicktags_active()){var d,e;d=QTags.instances,QTags.instances=[],quicktags(tinyMCEPreInit.qtInit[c]),QTags._buttonsInit(),e=QTags.instances[c],QTags.instances=d,QTags.instances[c]=e}this.is_tinymce_configured()||(tinyMCEPreInit.mceInit[c]=tinyMCEPreInit.mceInit["black-studio-tinymce-widget"],tinyMCEPreInit.mceInit[c].selector="#"+c),this.is_tinymce_active()||"visual"!==this.get_mode()?a("#"+c).addClass("active").removeClass("activating"):(tinyMCEPreInit.mceInit[c].setup=function(b){b.on("keyup change",function(){"visual"===bstw(c).get_mode()&&bstw(c).update_content(),a("#"+c).change()}),a("#"+c).addClass("active").removeClass("activating")},b?tinymce.init(tinyMCEPreInit.mceInit[c]):this.go())}return this},deactivate:function(){return a("#"+c).hasClass("activating")||(this.is_tinymce_active()&&tinymce.get(c).remove(),this.is_tinymce_configured()&&delete tinyMCEPreInit.mceInit[c],this.is_quicktags_active()&&(a(".quicktags-toolbar",this.get_widget_inside()).remove(),delete QTags.instances[c]),this.is_quicktags_configured()&&delete tinyMCEPreInit.qtInit[c],a("#"+c).removeClass("active")),this},update_content:function(){var a;return"visual"===this.get_mode()?(a=tinymce.get(c).save(),tinyMCEPreInit.mceInit[c].wpautop&&(a=window.switchEditors.pre_wpautop(a)),this.get_textarea().val(a)):this.is_tinymce_active()&&(a=this.get_textarea().val(),tinyMCEPreInit.mceInit[c].wpautop&&(a=window.switchEditors.wpautop(a)),tinymce.get(c).setContent(a)),this},go:function(a){return"undefined"==typeof a&&(a=this.get_mode()),window.switchEditors.go(c,"visual"===a?"tmce":"html"),this},get_mode:function(){return a("input[id^=widget-black-studio-tinymce][id$=type]",this.get_container()).val()},set_mode:function(b){return a("input[id^=widget-black-studio-tinymce][id$=type]",this.get_container()).val(b),this},get_container:function(){return a("#"+c).closest(bstw_data.container_selectors)},get_widget:function(){return a("#"+c).closest("div.widget")},get_widget_inside:function(){return a("#"+c).closest("div.widget-inside")},get_textarea:function(){return a("#"+c)},is_tinymce_active:function(){return"object"==typeof tinymce&&"object"==typeof tinymce.get(c)&&null!==tinymce.get(c)},is_tinymce_configured:function(){return"undefined"!=typeof tinyMCEPreInit.mceInit[c]},is_quicktags_active:function(){return"object"==typeof QTags.instances[c]},is_quicktags_configured:function(){return"object"==typeof tinyMCEPreInit.qtInit[c]},prepare:function(){return a('[name="'+this.get_textarea().attr("name")+'"]').size()>1&&0===a("div.error",this.get_widget_inside()).length&&this.get_widget_inside().prepend('<div class="error"><strong>'+bstw_data.error_duplicate_id+"</strong></div>"),this.get_widget().css("position","relative").css("z-index","100000"),a("#wpbody-content").css("overflow","visible"),this},responsive:function(){if(this.get_widget_inside().is(":visible")){var b,c=parseInt(a("input[name=widget-width]",this.get_widget()).val(),10),d=a(window).width(),e=this.get_widget().parent().width(),f=parseInt(a("#wpcontent").css("margin-left"),10),g=!("undefined"==typeof isRtl||!isRtl);c+f+30>d&&(b=this.get_widget().closest("div.widget-liquid-right").length?g?"margin-right":"margin-left":g?"margin-left":"margin-right",this.get_widget().css(b,e-(d-30-f)+"px"))}return this}}},a(document).ready(function(){a(document).on("click","div.widget[id*=black-studio-tinymce] .widget-title, div.widget[id*=black-studio-tinymce] .widget-action",function(){a(this).parents("#available-widgets").length||(bstw(a(this)).prepare().responsive().activate(!1),a("input[name=savewidget]",bstw(a(this)).get_widget()).on("click",function(){var b=a(this).closest(".widget").find(".wp-editor-wrap").height();a(this).closest(".widget").find(".wp-editor-wrap").height(b).append('<div class="bstw-loading"></div>'),a(this).closest(".widget").find(".bstw-loading").height(b).show(),bstw(a(this)).update_content()}))}),a(document).on("widget-added",function(a,b){b.is("[id*=black-studio-tinymce]")&&(a.preventDefault(),bstw(b).activate())}),a(document).on("widget-updated",function(a,b){b.is("[id*=black-studio-tinymce]")&&(a.preventDefault(),bstw(b).deactivate().activate())}),a(document).on("widget-synced",function(a,b){b.is("[id*=black-studio-tinymce]")&&(a.preventDefault(),"visual"===bstw(b).get_mode()&&bstw(b).update_content())}),a(document).on("click","[id^=widget-black-studio-tinymce][id$=tmce]",function(){bstw(a(this)).set_mode("visual")}),a(document).on("click","[id^=widget-black-studio-tinymce][id$=html]",function(){bstw(a(this)).set_mode("html")}),a(document).on("click.wp-editor",".wp-editor-wrap",function(){this.id&&(window.wpActiveEditor=this.id.slice(3,-5))}),a(document).on("sortstart",function(b,c){var d=["body.wp-customizer .expanded > div[id*=black-studio-tinymce].widget",".widget-liquid-right div[id*=black-studio-tinymce].widget.open"];a(d.join(", ")).filter(":has(.widget-inside:visible)").each(function(){a(".widget-title",this).trigger("click"),bstw(a(this)).deactivate()}),c.item.is("[id*=black-studio-tinymce]")&&bstw(c.item.find("textarea[id^=widget-black-studio-tinymce]")).deactivate()}),a(document).on("sortstop",function(a,b){b.item.is("[id*=black-studio-tinymce]")&&bstw(b.item.find("textarea[id^=widget-black-studio-tinymce]")).activate(!1)}),a(document).on("sortupdate",function(b,c){null!==b&&a(c.item).is(".ui-draggable")||(a("body").addClass("wait"),setTimeout(function(){a("textarea[id^=widget-black-studio-tinymce].active").each(function(){bstw(a(this)).deactivate()}),a("body").removeClass("wait")},1e3))}),"object"==typeof bstw_data.activate_events&&bstw_data.activate_events.length>0&&a(document).on(bstw_data.activate_events.join(" "),function(b){bstw(a(b.target)).activate()}),"object"==typeof bstw_data.deactivate_events&&bstw_data.deactivate_events.length>0&&a(document).on(bstw_data.deactivate_events.join(" "),function(b){bstw(a(b.target)).deactivate()}),a(window).resize(function(){a("textarea[id^=widget-black-studio-tinymce]").each(function(){bstw(a(this)).responsive()})}),a("#qt_widget-black-studio-tinymce-__i__-text_toolbar").remove(),a(document).on("click",".bstw-links-icon",function(b){b.preventDefault(),a(this).closest(".bstw-links").children(".bstw-links-list").toggle()})})}(jQuery);
1
+ /* Black Studio TinyMCE Widget - v2.2.3 */
2
+ var bstw;!function(a){bstw=function(b){var c=null;return"string"==typeof b?c=b:"object"==typeof b&&b instanceof jQuery&&(c=a("textarea[id^=widget-black-studio-tinymce][id$=text]",b.closest(bstw_data.container_selectors)).attr("id")),{activate:function(b){if(b="undefined"!=typeof b?b:!0,!a("#"+c).hasClass("active")&&!a("#"+c).hasClass("activating")){if(a("#"+c).addClass("activating"),this.is_quicktags_configured()||(tinyMCEPreInit.qtInit[c]=tinyMCEPreInit.qtInit["black-studio-tinymce-widget"],tinyMCEPreInit.qtInit[c].id=c),!this.is_quicktags_active()){var d,e;d=QTags.instances,QTags.instances=[],quicktags(tinyMCEPreInit.qtInit[c]),QTags._buttonsInit(),e=QTags.instances[c],QTags.instances=d,QTags.instances[c]=e}this.is_tinymce_configured()||(tinyMCEPreInit.mceInit[c]=tinyMCEPreInit.mceInit["black-studio-tinymce-widget"],tinyMCEPreInit.mceInit[c].selector="#"+c),this.is_tinymce_active()||"visual"!==this.get_mode()?a("#"+c).addClass("active").removeClass("activating"):(tinyMCEPreInit.mceInit[c].setup=function(b){b.on("keyup change",function(){"visual"===bstw(c).get_mode()&&bstw(c).update_content(),a("#"+c).change()}),a("#"+c).addClass("active").removeClass("activating")},b?tinymce.init(tinyMCEPreInit.mceInit[c]):this.go())}return this},deactivate:function(){return a("#"+c).hasClass("activating")||(this.is_tinymce_active()&&tinymce.get(c).remove(),this.is_tinymce_configured()&&delete tinyMCEPreInit.mceInit[c],this.is_quicktags_active()&&(a(".quicktags-toolbar",this.get_widget_inside()).remove(),delete QTags.instances[c]),this.is_quicktags_configured()&&delete tinyMCEPreInit.qtInit[c],a("#"+c).removeClass("active")),this},update_content:function(){var a;return"visual"===this.get_mode()?(a=tinymce.get(c).save(),tinyMCEPreInit.mceInit[c].wpautop&&(a=window.switchEditors.pre_wpautop(a)),this.get_textarea().val(a)):this.is_tinymce_active()&&(a=this.get_textarea().val(),tinyMCEPreInit.mceInit[c].wpautop&&(a=window.switchEditors.wpautop(a)),tinymce.get(c).setContent(a)),this},go:function(a){return"undefined"==typeof a&&(a=this.get_mode()),window.switchEditors.go(c,"visual"===a?"tmce":"html"),this},get_mode:function(){return a("input[id^=widget-black-studio-tinymce][id$=type]",this.get_container()).val()},set_mode:function(b){return a("input[id^=widget-black-studio-tinymce][id$=type]",this.get_container()).val(b),this},get_container:function(){return a("#"+c).closest(bstw_data.container_selectors)},get_widget:function(){return a("#"+c).closest("div.widget")},get_widget_inside:function(){return a("#"+c).closest("div.widget-inside")},get_textarea:function(){return a("#"+c)},is_tinymce_active:function(){return"object"==typeof tinymce&&"object"==typeof tinymce.get(c)&&null!==tinymce.get(c)},is_tinymce_configured:function(){return"undefined"!=typeof tinyMCEPreInit.mceInit[c]},is_quicktags_active:function(){return"object"==typeof QTags.instances[c]},is_quicktags_configured:function(){return"object"==typeof tinyMCEPreInit.qtInit[c]},prepare:function(){return a('[name="'+this.get_textarea().attr("name")+'"]').size()>1&&0===a("div.error",this.get_widget_inside()).length&&this.get_widget_inside().prepend('<div class="error"><strong>'+bstw_data.error_duplicate_id+"</strong></div>"),this.get_widget().css("position","relative").css("z-index","100000"),a("#wpbody-content").css("overflow","visible"),this},responsive:function(){if(this.get_widget_inside().is(":visible")){var b,c=parseInt(a("input[name=widget-width]",this.get_widget()).val(),10),d=a(window).width(),e=this.get_widget().parent().width(),f=parseInt(a("#wpcontent").css("margin-left"),10),g=!("undefined"==typeof isRtl||!isRtl);c+f+30>d&&(b=this.get_widget().closest("div.widget-liquid-right").length?g?"margin-right":"margin-left":g?"margin-left":"margin-right",this.get_widget().css(b,e-(d-30-f)+"px"))}return this}}},a(document).ready(function(){a(document).on("click","div.widget[id*=black-studio-tinymce] .widget-title, div.widget[id*=black-studio-tinymce] .widget-action",function(){a(this).parents("#available-widgets").length||(bstw(a(this)).prepare().responsive().activate(!1),a("input[name=savewidget]",bstw(a(this)).get_widget()).on("click",function(){var b=a(this).closest(".widget").find(".wp-editor-wrap").height();a(this).closest(".widget").find(".wp-editor-wrap").height(b).append('<div class="bstw-loading"></div>'),a(this).closest(".widget").find(".bstw-loading").height(b).show(),bstw(a(this)).update_content()}))}),a(document).on("widget-added",function(a,b){b.is("[id*=black-studio-tinymce]")&&(a.preventDefault(),bstw(b).activate())}),a(document).on("widget-updated",function(a,b){b.is("[id*=black-studio-tinymce]")&&(a.preventDefault(),bstw(b).deactivate().activate())}),a(document).on("widget-synced",function(a,b){b.is("[id*=black-studio-tinymce]")&&(a.preventDefault(),"visual"===bstw(b).get_mode()&&bstw(b).update_content())}),a(document).on("click","[id^=widget-black-studio-tinymce][id$=tmce]",function(){bstw(a(this)).set_mode("visual")}),a(document).on("click","[id^=widget-black-studio-tinymce][id$=html]",function(){bstw(a(this)).set_mode("html")}),a(document).on("click.wp-editor",".wp-editor-wrap",function(){this.id&&(window.wpActiveEditor=this.id.slice(3,-5))}),a(document).on("sortstart",function(b,c){if(null===b||a(c.item).is(".widget")&&!a(c.item).is(".ui-draggable")){var d=["body.wp-customizer .expanded > div[id*=black-studio-tinymce].widget",".widget-liquid-right div[id*=black-studio-tinymce].widget.open"];a(d.join(", ")).filter(":has(.widget-inside:visible)").each(function(){a(".widget-title",this).trigger("click"),bstw(a(this)).deactivate()}),c.item.is("[id*=black-studio-tinymce]")&&bstw(c.item.find("textarea[id^=widget-black-studio-tinymce]")).deactivate()}}),a(document).on("sortstop",function(a,b){b.item.is("[id*=black-studio-tinymce]")&&bstw(b.item.find("textarea[id^=widget-black-studio-tinymce]")).activate(!1)}),a(document).on("sortupdate",function(b,c){(null===b||a(c.item).is(".widget")&&!a(c.item).is(".ui-draggable"))&&(a("body").addClass("wait"),setTimeout(function(){a("textarea[id^=widget-black-studio-tinymce].active").each(function(){bstw(a(this)).deactivate()}),a("body").removeClass("wait")},1e3))}),"object"==typeof bstw_data.activate_events&&bstw_data.activate_events.length>0&&a(document).on(bstw_data.activate_events.join(" "),function(b){bstw(a(b.target)).activate()}),"object"==typeof bstw_data.deactivate_events&&bstw_data.deactivate_events.length>0&&a(document).on(bstw_data.deactivate_events.join(" "),function(b){bstw(a(b.target)).deactivate()}),a(window).resize(function(){a("textarea[id^=widget-black-studio-tinymce]").each(function(){bstw(a(this)).responsive()})}),a("#qt_widget-black-studio-tinymce-__i__-text_toolbar").remove(),a(document).on("click",".bstw-links-icon",function(b){b.preventDefault(),a(this).closest(".bstw-links").children(".bstw-links-list").toggle()})})}(jQuery);
js/wp-page-widget.min.js CHANGED
@@ -1,2 +1,2 @@
1
- /* Black Studio TinyMCE Widget - v2.2.2 */
2
!function(a){a(document).ready(function(){a(document).on("click","#pw-sidebars-customize div[id*=black-studio-tinymce].widget input.widget-control-save",function(){a(this).unbind("ajaxSuccess").ajaxSuccess(function(){a(this).trigger("widget-updated",[bstw(a(this)).get_widget()]).unbind("ajaxSuccess")})}),a(document).on("click","#pw-sidebars-customize div[id*=black-studio-tinymce].widget .widget-title",function(){var b=bstw(a(this)).get_textarea();b.hasClass("active")&&(bstw(a(this)).deactivate(),a(this).trigger("widget-added",[bstw(a(this)).get_widget()]))})})}(jQuery);
1
+ /* Black Studio TinyMCE Widget - v2.2.3 */
2
!function(a){a(document).ready(function(){a(document).on("click","#pw-sidebars-customize div[id*=black-studio-tinymce].widget input.widget-control-save",function(){a(this).unbind("ajaxSuccess").ajaxSuccess(function(){a(this).trigger("widget-updated",[bstw(a(this)).get_widget()]).unbind("ajaxSuccess")})}),a(document).on("click","#pw-sidebars-customize div[id*=black-studio-tinymce].widget .widget-title",function(){var b=bstw(a(this)).get_textarea();b.hasClass("active")&&(bstw(a(this)).deactivate(),a(this).trigger("widget-added",[bstw(a(this)).get_widget()]))})})}(jQuery);
languages/black-studio-tinymce-widget-cs_CZ.mo ADDED
Binary file
languages/black-studio-tinymce-widget-cs_CZ.po ADDED
@@ -0,0 +1,100 @@
1
+ # Copyright (C) 2015 Black Studio
2
+ # This file is distributed under the GPLv3.
3
+ # Translators:
4
+ # marcochiesi <marco@blackstudio.it>, 2014
5
+ # marcochiesi <marco@blackstudio.it>, 2014
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: Black Studio TinyMCE Widget\n"
9
+ "Report-Msgid-Bugs-To: https://github.com/black-studio/black-studio-tinymce-widget/issues\n"
10
+ "POT-Creation-Date: 2015-02-17 09:20:25+00:00\n"
11
+ "PO-Revision-Date: 2015-02-16 21:12+0000\n"
12
+ "Last-Translator: Tomáš Hrdina <mot2425@gmail.com>\n"
13
+ "Language-Team: Czech (Czech Republic) (http://www.transifex.com/projects/p/black-studio-tinymce-widget/language/cs_CZ/)\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Language: cs_CZ\n"
18
+ "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
19
+ "X-Generator: grunt-wp-i18n 0.4.8\n"
20
+ "X-Poedit-Basepath: .\n"
21
+ "X-Poedit-Bookmarks: \n"
22
+ "X-Poedit-Country: United States\n"
23
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
24
+ "X-Poedit-Language: English\n"
25
+ "X-Poedit-SearchPath-0: .\n"
26
+ "X-Poedit-SourceCharset: utf-8\n"
27
+ "X-Textdomain-Support: yes\n"
28
+
29
+ #. translators: error message shown when multiple instance of the plugin are
30
+ #. detected
31
+ #: black-studio-tinymce-widget.php:280
32
+ msgid ""
33
+ "ERROR: Multiple instances of the Black Studio TinyMCE Widget plugin were "
34
+ "detected. Please activate only one instance at a time."
35
+ msgstr "CHYBA: Bylo zjištěno více instancí pluginu Black Studio TinyMCE Widget. Aktivujte pouze jednu instanci."
36
+
37
+ #. translators: text for the dismissable admin pointer tooltip
38
+ #: includes/class-admin-pointer.php:168
39
+ msgid ""
40
+ "The Visual Editor widget allows you to insert rich text and media objects in"
41
+ " your sidebars"
42
+ msgstr "Visual Editor widget Vám umožňí vložit bohaté textové a multimediální objekty do vašich postranních panelů"
43
+
44
+ #. translators: error message shown when a duplicated widget ID is detected
45
+ #: includes/class-admin.php:247
46
+ msgid ""
47
+ "ERROR: Duplicate widget ID detected. To avoid content loss, please create a "
48
+ "new widget with the same content and then delete this one."
49
+ msgstr "Chyba: Zjištěno duplicitní ID widgety. Chcete-li zabránit ztrátě obsahu, vytvořte nový widget se stejným obsahem a teprve poté odstraňte tuto widgetu."
50
+
51
+ #. translators: text used for plugin home link
52
+ #: includes/class-admin.php:335
53
+ msgid "Home"
54
+ msgstr "Úvodní stránka"
55
+
56
+ #. translators: text used for support faq link
57
+ #: includes/class-admin.php:337
58
+ msgid "FAQ"
59
+ msgstr "FAQ"
60
+
61
+ #. translators: text used for support forum link
62
+ #: includes/class-admin.php:339
63
+ msgid "Support"
64
+ msgstr "Podpora"
65
+
66
+ #. translators: text used for reviews link
67
+ #: includes/class-admin.php:341
68
+ msgid "Rate"
69
+ msgstr "Ohodnoťte plugin"
70
+
71
+ #. translators: text used for follow on twitter link
72
+ #: includes/class-admin.php:343
73
+ msgid "Follow"
74
+ msgstr "Sledovat"
75
+
76
+ #. translators: text used for donation link
77
+ #: includes/class-admin.php:345
78
+ msgid "Donate"
79
+ msgstr "Darovat"
80
+
81
+ #. translators: text used for the icon that shows the plugin links
82
+ #: includes/class-admin.php:365
83
+ msgid "About Black Studio TinyMCE Widget plugin"
84
+ msgstr "O pluginu Black Studio TinyMCE Widget"
85
+
86
+ #. translators: title of the widget
87
+ #: includes/class-widget.php:28
88
+ msgid "Visual Editor"
89
+ msgstr "Vizuální Editor"
90
+
91
+ #. translators: description of the widget, shown in available widgets
92
+ #: includes/class-widget.php:30
93
+ msgid "Arbitrary text or HTML with visual editor"
94
+ msgstr "Libovolný text nebo HTML s vizuálním editorem"
95
+
96
+ #. Description of the plugin/theme
97
+ msgid ""
98
+ "Adds a new \"Visual Editor\" widget type based on the native WordPress "
99
+ "TinyMCE editor."
100
+ msgstr "Přidá nový typ widgetu \"Vizuální Editor\", založený na původním WordPress TinyMCE editor."
languages/black-studio-tinymce-widget-es_ES.mo CHANGED
Binary file
languages/black-studio-tinymce-widget-es_ES.po CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014 Black Studio
2
# This file is distributed under the GPLv3.
3
# Translators:
4
# genethic <lauramoreno1436@gmail.com>, 2014
@@ -7,8 +7,8 @@ msgid ""
7
msgstr ""
8
"Project-Id-Version: Black Studio TinyMCE Widget\n"
9
"Report-Msgid-Bugs-To: https://github.com/black-studio/black-studio-tinymce-widget/issues\n"
10
- "POT-Creation-Date: 2014-12-24 09:59:17+00:00\n"
11
- "PO-Revision-Date: 2014-12-22 20:06+0000\n"
12
"Last-Translator: marcochiesi <marco@blackstudio.it>\n"
13
"Language-Team: Spanish (Spain) (http://www.transifex.com/projects/p/black-studio-tinymce-widget/language/es_ES/)\n"
14
"MIME-Version: 1.0\n"
1
+ # Copyright (C) 2015 Black Studio
2
# This file is distributed under the GPLv3.
3
# Translators:
4
# genethic <lauramoreno1436@gmail.com>, 2014
7
msgstr ""
8
"Project-Id-Version: Black Studio TinyMCE Widget\n"
9
"Report-Msgid-Bugs-To: https://github.com/black-studio/black-studio-tinymce-widget/issues\n"
10
+ "POT-Creation-Date: 2015-02-17 09:20:25+00:00\n"
11
+ "PO-Revision-Date: 2015-01-29 13:27+0000\n"
12
"Last-Translator: marcochiesi <marco@blackstudio.it>\n"
13
"Language-Team: Spanish (Spain) (http://www.transifex.com/projects/p/black-studio-tinymce-widget/language/es_ES/)\n"
14
"MIME-Version: 1.0\n"
languages/black-studio-tinymce-widget-lt_LT.mo ADDED
Binary file
languages/black-studio-tinymce-widget-lt_LT.po ADDED
@@ -0,0 +1,100 @@
1
+ # Copyright (C) 2015 Black Studio
2
+ # This file is distributed under the GPLv3.
3
+ # Translators:
4
+ # marcochiesi <marco@blackstudio.it>, 2014
5
+ # Moo, 2015
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: Black Studio TinyMCE Widget\n"
9
+ "Report-Msgid-Bugs-To: https://github.com/black-studio/black-studio-tinymce-widget/issues\n"
10
+ "POT-Creation-Date: 2015-02-17 09:20:25+00:00\n"
11
+ "PO-Revision-Date: 2015-01-16 17:52+0000\n"
12
+ "Last-Translator: Moo\n"
13
+ "Language-Team: Lithuanian (Lithuania) (http://www.transifex.com/projects/p/black-studio-tinymce-widget/language/lt_LT/)\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Language: lt_LT\n"
18
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
19
+ "X-Generator: grunt-wp-i18n 0.4.8\n"
20
+ "X-Poedit-Basepath: .\n"
21
+ "X-Poedit-Bookmarks: \n"
22
+ "X-Poedit-Country: United States\n"
23
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
24
+ "X-Poedit-Language: English\n"
25
+ "X-Poedit-SearchPath-0: .\n"
26
+ "X-Poedit-SourceCharset: utf-8\n"
27
+ "X-Textdomain-Support: yes\n"
28
+
29
+ #. translators: error message shown when multiple instance of the plugin are
30
+ #. detected
31
+ #: black-studio-tinymce-widget.php:280
32
+ msgid ""
33
+ "ERROR: Multiple instances of the Black Studio TinyMCE Widget plugin were "
34
+ "detected. Please activate only one instance at a time."
35
+ msgstr "KLAIDA: Buvo aptikti keli Black Studio TinyMCE Valdiklio įskiepio egzemplioriai. Prašome vienu metu aktyvuoti tik vieną egzempliorių."
36
+
37
+ #. translators: text for the dismissable admin pointer tooltip
38
+ #: includes/class-admin-pointer.php:168
39
+ msgid ""
40
+ "The Visual Editor widget allows you to insert rich text and media objects in"
41
+ " your sidebars"
42
+ msgstr "Raiškiojo Redagavimo valdiklis leidžia jums į savo parankinę įterpti raiškiojo teksto ir medijos objektus"
43
+
44
+ #. translators: error message shown when a duplicated widget ID is detected
45
+ #: includes/class-admin.php:247
46
+ msgid ""
47
+ "ERROR: Duplicate widget ID detected. To avoid content loss, please create a "
48
+ "new widget with the same content and then delete this one."
49
+ msgstr "KLAIDA: Aptikti vienodi valdiklio ID. Kad išvengtumėte duomenų praradimo, prašome sukurti naują valdiklį su tuo pačiu turiniu ir po to ištrinti šį valdiklį."
50
+
51
+ #. translators: text used for plugin home link
52
+ #: includes/class-admin.php:335
53
+ msgid "Home"
54
+ msgstr "Pradžia"
55
+
56
+ #. translators: text used for support faq link
57
+ #: includes/class-admin.php:337
58
+ msgid "FAQ"
59
+ msgstr "DUK"
60
+
61
+ #. translators: text used for support forum link
62
+ #: includes/class-admin.php:339
63
+ msgid "Support"
64
+ msgstr "Pagalba"
65
+
66
+ #. translators: text used for reviews link
67
+ #: includes/class-admin.php:341
68
+ msgid "Rate"
69
+ msgstr "Tarifas"
70
+
71
+ #. translators: text used for follow on twitter link
72
+ #: includes/class-admin.php:343
73
+ msgid "Follow"
74
+ msgstr "Sekti"
75
+
76
+ #. translators: text used for donation link
77
+ #: includes/class-admin.php:345
78
+ msgid "Donate"
79
+ msgstr "Aukoti"
80
+
81
+ #. translators: text used for the icon that shows the plugin links
82
+ #: includes/class-admin.php:365
83
+ msgid "About Black Studio TinyMCE Widget plugin"
84
+ msgstr "Apie Black Studio TinyMCE Valdiklio įskiepį"
85
+
86
+ #. translators: title of the widget
87
+ #: includes/class-widget.php:28
88
+ msgid "Visual Editor"
89
+ msgstr "Raiškusis redagavimas"
90
+
91
+ #. translators: description of the widget, shown in available widgets
92
+ #: includes/class-widget.php:30
93
+ msgid "Arbitrary text or HTML with visual editor"
94
+ msgstr "Sutartinis tekstas arba HTML su raiškiuoju redagavimu"
95
+
96
+ #. Description of the plugin/theme
97
+ msgid ""
98
+ "Adds a new \"Visual Editor\" widget type based on the native WordPress "
99
+ "TinyMCE editor."
100
+ msgstr "Prideda naują \"Visual Editor\" valdiklio tipą pagrįstą WordPress savu TinyMCE redaktoriumi."
languages/black-studio-tinymce-widget-nl_NL.mo CHANGED
Binary file
languages/black-studio-tinymce-widget-nl_NL.po CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014 Black Studio
2
# This file is distributed under the GPLv3.
3
# Translators:
4
# Janjaap van Dijk <janjaapvandijk@gmail.com>, 2014
@@ -7,8 +7,8 @@ msgid ""
7
msgstr ""
8
"Project-Id-Version: Black Studio TinyMCE Widget\n"
9
"Report-Msgid-Bugs-To: https://github.com/black-studio/black-studio-tinymce-widget/issues\n"
10
- "POT-Creation-Date: 2014-12-24 09:59:17+00:00\n"
11
- "PO-Revision-Date: 2014-12-22 20:06+0000\n"
12
"Last-Translator: marcochiesi <marco@blackstudio.it>\n"
13
"Language-Team: Dutch (Netherlands) (http://www.transifex.com/projects/p/black-studio-tinymce-widget/language/nl_NL/)\n"
14
"MIME-Version: 1.0\n"
1
+ # Copyright (C) 2015 Black Studio
2
# This file is distributed under the GPLv3.
3
# Translators:
4
# Janjaap van Dijk <janjaapvandijk@gmail.com>, 2014
7
msgstr ""
8
"Project-Id-Version: Black Studio TinyMCE Widget\n"
9
"Report-Msgid-Bugs-To: https://github.com/black-studio/black-studio-tinymce-widget/issues\n"
10
+ "POT-Creation-Date: 2015-02-17 09:20:25+00:00\n"
11
+ "PO-Revision-Date: 2015-01-29 13:27+0000\n"
12
"Last-Translator: marcochiesi <marco@blackstudio.it>\n"
13
"Language-Team: Dutch (Netherlands) (http://www.transifex.com/projects/p/black-studio-tinymce-widget/language/nl_NL/)\n"
14
"MIME-Version: 1.0\n"
languages/black-studio-tinymce-widget-pl_PL.mo CHANGED
Binary file
languages/black-studio-tinymce-widget-pl_PL.po CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014 Black Studio
2
# This file is distributed under the GPLv3.
3
# Translators:
4
# marcochiesi <marco@blackstudio.it>, 2014
@@ -6,8 +6,8 @@ msgid ""
6
msgstr ""
7
"Project-Id-Version: Black Studio TinyMCE Widget\n"
8
"Report-Msgid-Bugs-To: https://github.com/black-studio/black-studio-tinymce-widget/issues\n"
9
- "POT-Creation-Date: 2014-10-12 22:25:50+00:00\n"
10
- "PO-Revision-Date: 2014-10-12 22:24+0000\n"
11
"Last-Translator: marcochiesi <marco@blackstudio.it>\n"
12
"Language-Team: Polish (Poland) (http://www.transifex.com/projects/p/black-studio-tinymce-widget/language/pl_PL/)\n"
13
"MIME-Version: 1.0\n"
@@ -27,51 +27,58 @@ msgstr ""
27
28
#. translators: error message shown when multiple instance of the plugin are
29
#. detected
30
- #: black-studio-tinymce-widget.php:260
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
#. translators: error message shown when a duplicated widget ID is detected
37
- #: includes/class-admin.php:245
38
msgid ""
39
"ERROR: Duplicate widget ID detected. To avoid content loss, please create a "
40
"new widget with the same content and then delete this one."
41
msgstr ""
42
43
#. translators: text used for plugin home link
44
- #: includes/class-admin.php:319
45
msgid "Home"
46
msgstr "Strona główna"
47
48
#. translators: text used for support faq link
49
- #: includes/class-admin.php:321
50
msgid "FAQ"
51
msgstr "FAQ"
52
53
#. translators: text used for support forum link
54
- #: includes/class-admin.php:323
55
msgid "Support"
56
- msgstr ""
57
58
#. translators: text used for reviews link
59
- #: includes/class-admin.php:325
60
msgid "Rate"
61
msgstr "Tempo"
62
63
#. translators: text used for follow on twitter link
64
- #: includes/class-admin.php:327
65
msgid "Follow"
66
msgstr "Śledź"
67
68
#. translators: text used for donation link
69
- #: includes/class-admin.php:329
70
msgid "Donate"
71
- msgstr ""
72
73
#. translators: text used for the icon that shows the plugin links
74
- #: includes/class-admin.php:349
75
msgid "About Black Studio TinyMCE Widget plugin"
76
msgstr ""
77
1
+ # Copyright (C) 2015 Black Studio
2
# This file is distributed under the GPLv3.
3
# Translators:
4
# marcochiesi <marco@blackstudio.it>, 2014
6
msgstr ""
7
"Project-Id-Version: Black Studio TinyMCE Widget\n"
8
"Report-Msgid-Bugs-To: https://github.com/black-studio/black-studio-tinymce-widget/issues\n"
9
+ "POT-Creation-Date: 2015-02-17 09:20:25+00:00\n"
10
+ "PO-Revision-Date: 2015-02-06 14:17+0000\n"
11
"Last-Translator: marcochiesi <marco@blackstudio.it>\n"
12
"Language-Team: Polish (Poland) (http://www.transifex.com/projects/p/black-studio-tinymce-widget/language/pl_PL/)\n"
13
"MIME-Version: 1.0\n"
27
28
#. translators: error message shown when multiple instance of the plugin are
29
#. detected
30
+ #: black-studio-tinymce-widget.php:280
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
+ #. translators: text for the dismissable admin pointer tooltip
37
+ #: includes/class-admin-pointer.php:168
38
+ msgid ""
39
+ "The Visual Editor widget allows you to insert rich text and media objects in"
40
+ " your sidebars"
41
+ msgstr ""
42
+
43
#. translators: error message shown when a duplicated widget ID is detected
44
+ #: includes/class-admin.php:247
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
#. translators: text used for plugin home link
51
+ #: includes/class-admin.php:335
52
msgid "Home"
53
msgstr "Strona główna"
54
55
#. translators: text used for support faq link
56
+ #: includes/class-admin.php:337
57
msgid "FAQ"
58
msgstr "FAQ"
59
60
#. translators: text used for support forum link
61
+ #: includes/class-admin.php:339
62
msgid "Support"
63
+ msgstr "Wsparcie"
64
65
#. translators: text used for reviews link
66
+ #: includes/class-admin.php:341
67
msgid "Rate"
68
msgstr "Tempo"
69
70
#. translators: text used for follow on twitter link
71
+ #: includes/class-admin.php:343
72
msgid "Follow"
73
msgstr "Śledź"
74
75
#. translators: text used for donation link
76
+ #: includes/class-admin.php:345
77
msgid "Donate"
78
+ msgstr "Dotacja"
79
80
#. translators: text used for the icon that shows the plugin links
81
+ #: includes/class-admin.php:365
82
msgid "About Black Studio TinyMCE Widget plugin"
83
msgstr ""
84
languages/black-studio-tinymce-widget.pot CHANGED
@@ -1,15 +1,15 @@
1
- # Copyright (C) 2014 Black Studio
2
# This file is distributed under the GPLv3.
3
msgid ""
4
msgstr ""
5
"Project-Id-Version: Black Studio TinyMCE Widget 2.2.2\n"
6
"Report-Msgid-Bugs-To: "
7
"https://github.com/black-studio/black-studio-tinymce-widget/issues\n"
8
- "POT-Creation-Date: 2014-12-24 09:59:17+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: 2014-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.8\n"
1
+ # Copyright (C) 2015 Black Studio
2
# This file is distributed under the GPLv3.
3
msgid ""
4
msgstr ""
5
"Project-Id-Version: Black Studio TinyMCE Widget 2.2.2\n"
6
"Report-Msgid-Bugs-To: "
7
"https://github.com/black-studio/black-studio-tinymce-widget/issues\n"
8
+ "POT-Creation-Date: 2015-02-17 09:20:25+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: 2015-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.8\n"
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.1
7
- Stable tag: 2.2.2
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl.html
10
@@ -178,6 +178,10 @@ Plugin's data is stored in serialized format inside a record in the `wp_options`
178
179
== Changelog ==
180
181
= 2.2.2 (2014-12-24) =
182
* Fixed bug on visual/text mode not being saved in WordPress 4.1
183
* Updated German and French translations
@@ -409,5 +413,5 @@ Plugin's data is stored in serialized format inside a record in the `wp_options`
409
410
== Upgrade Notice ==
411
412
- = 2.2.2 =
413
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.1
7
+ Stable tag: 2.2.3
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl.html
10
178
179
== Changelog ==
180
181
+ = 2.2.3 (2015-02-17) =
182
+ * Fixed bug on reordering gallery images
183
+ * Added czech and lithuanian translations (courtesy of WP-Translation.org team on Transifex)
184
+
185
= 2.2.2 (2014-12-24) =
186
* Fixed bug on visual/text mode not being saved in WordPress 4.1
187
* Updated German and French translations
413
414
== Upgrade Notice ==
415
416
+ = 2.2.3 =
417
Version 2.x is a major update. If you are upgrading from version 1.x please ensure to backup your database before upgrading.