SiteOrigin Widgets Bundle - Version 1.17.10

Version Description

  • 13 November 2020 ==
  • TinyMCE: Resolved issue with the Add Media button.

=

Download this release

Release Info

Developer SiteOrigin
Plugin Icon 128x128 SiteOrigin Widgets Bundle
Version 1.17.10
Comparing to
See all releases

Code changes from version 1.17.9 to 1.17.10

base/inc/fields/js/tinymce-field.js CHANGED
@@ -74,6 +74,10 @@
74
  if ( $field.find( '.wp-media-buttons' ).length === 0 ) {
75
  $field.find( '.wp-editor-tabs' ).before( mediaButtons.html );
76
  }
 
 
 
 
77
  }
78
  } );
79
  $( document ).on( 'tinymce-editor-setup', function () {
74
  if ( $field.find( '.wp-media-buttons' ).length === 0 ) {
75
  $field.find( '.wp-editor-tabs' ).before( mediaButtons.html );
76
  }
77
+
78
+ // Account for randomized id.
79
+ var $textarea = $container.find( 'textarea' );
80
+ $field.find( '.add_media' ).attr( 'data-editor', $textarea.data( 'tinymce-id' ) );
81
  }
82
  } );
83
  $( document ).on( 'tinymce-editor-setup', function () {
base/inc/fields/js/tinymce-field.min.js CHANGED
@@ -1 +1 @@
1
- !function(i){var e=function(e){if(!e.data("initialized")){var t=wp.oldEditor?wp.oldEditor:wp.editor;t&&t.hasOwnProperty("autop")&&(wp.editor.autop=t.autop,wp.editor.removep=t.removep,wp.editor.initialize=t.initialize);var n,o=e.find(".siteorigin-widget-tinymce-container"),r=o.data("editorSettings");if(tinyMCEPreInit.mceInit&&tinyMCEPreInit.mceInit.hasOwnProperty("content")){var c=tinyMCEPreInit.mceInit.content;if(c.hasOwnProperty("content_css")&&c.content_css){var a=c.content_css.split(",");if(r.tinymce.hasOwnProperty("content_css")&&r.tinymce.content_css)for(var s=0;s<a.length;s++){var d=a[s];-1===r.tinymce.content_css.indexOf(d)&&(r.tinymce.content_css+=","+d)}else r.tinymce.content_css=a}}if(r.wpautopToggleField){var l=o.closest(".siteorigin-widget-form");n=l.find(r.wpautopToggleField),r.tinymce.wpautop=n.is(":checked")}var f=o.find("textarea");if(!(m=f.data("tinymce-id"))){var m=f.attr("id")+Math.floor(1e3*Math.random());f.data("tinymce-id",m),f.attr("id",m)}if(r.tinymce&&(r.tinymce=i.extend({},r.tinymce,{selector:"#"+m,setup:function(i){i.on("change",(function(){window.tinymce.get(m).save(),f.trigger("change")})),n&&(n.off("change"),n.on("change",(function(){wp.editor.remove(m),r.tinymce.wpautop=n.is(":checked"),wp.editor.initialize(m,r)})))}})),i(document).on("wp-before-tinymce-init",(function(i,t){if(t.selector===r.tinymce.selector){var n=o.data("mediaButtons");0===e.find(".wp-media-buttons").length&&e.find(".wp-editor-tabs").before(n.html)}})),i(document).on("tinymce-editor-setup",(function(){var i=e.find(".wp-editor-wrap");i.length>0&&!i.hasClass(r.selectedEditor+"-active")&&setTimeout((function(){window.switchEditors.go(m)}),10)})),t.remove(m),window.tinymce&&window.tinymce.EditorManager.overrideDefaults({base_url:r.baseURL,suffix:r.suffix}),f.is(":visible"))t.initialize(m,r);else var w=setInterval((function(){f.is(":visible")&&(t.initialize(m,r),clearInterval(w))}),500);e.on("click",(function(t){var n=i(t.target);if(n.is(".wp-switch-editor")){var o=n.hasClass("switch-tmce")?"tmce":"html";if("tmce"===o){var c=window.tinymce.get(m);if(null!==c){var a=f.val();-1!==a.search("<")&&-1===a.search(">")&&(a=a.replace(/</g,""),f.val(a)),c.setContent(window.switchEditors.wpautop(a))}}r.selectedEditor=o,e.find(".siteorigin-widget-tinymce-selected-editor").val(o)}})),e.data("initialized",!0)}};i(document).on("sowsetupformfield",".siteorigin-widget-field-type-tinymce",(function(){var t=i(this),n=t.closest(".siteorigin-widget-field-repeater-item-form");n.length>0?n.is(":visible")?e(t):n.on("slideToggleOpenComplete",(function(){n.is(":visible")&&(e(t),n.off("slideToggleOpenComplete"))})):e(t)})),i(document).on("sortstop",(function(t,n){(n.item.is(".siteorigin-widget-field-repeater-item")?n.item.find("> .siteorigin-widget-field-repeater-item-form"):n.item.find(".siteorigin-widget-form")).find(".siteorigin-widget-field-type-tinymce").each((function(){i(this).data("initialized",null),e(i(this))}))}))}(jQuery);
1
+ !function(i){var e=function(e){if(!e.data("initialized")){var t=wp.oldEditor?wp.oldEditor:wp.editor;t&&t.hasOwnProperty("autop")&&(wp.editor.autop=t.autop,wp.editor.removep=t.removep,wp.editor.initialize=t.initialize);var n,o=e.find(".siteorigin-widget-tinymce-container"),r=o.data("editorSettings");if(tinyMCEPreInit.mceInit&&tinyMCEPreInit.mceInit.hasOwnProperty("content")){var a=tinyMCEPreInit.mceInit.content;if(a.hasOwnProperty("content_css")&&a.content_css){var c=a.content_css.split(",");if(r.tinymce.hasOwnProperty("content_css")&&r.tinymce.content_css)for(var d=0;d<c.length;d++){var s=c[d];-1===r.tinymce.content_css.indexOf(s)&&(r.tinymce.content_css+=","+s)}else r.tinymce.content_css=c}}if(r.wpautopToggleField){var l=o.closest(".siteorigin-widget-form");n=l.find(r.wpautopToggleField),r.tinymce.wpautop=n.is(":checked")}var f=o.find("textarea");if(!(m=f.data("tinymce-id"))){var m=f.attr("id")+Math.floor(1e3*Math.random());f.data("tinymce-id",m),f.attr("id",m)}if(r.tinymce&&(r.tinymce=i.extend({},r.tinymce,{selector:"#"+m,setup:function(i){i.on("change",(function(){window.tinymce.get(m).save(),f.trigger("change")})),n&&(n.off("change"),n.on("change",(function(){wp.editor.remove(m),r.tinymce.wpautop=n.is(":checked"),wp.editor.initialize(m,r)})))}})),i(document).on("wp-before-tinymce-init",(function(i,t){if(t.selector===r.tinymce.selector){var n=o.data("mediaButtons");0===e.find(".wp-media-buttons").length&&e.find(".wp-editor-tabs").before(n.html);var a=o.find("textarea");e.find(".add_media").attr("data-editor",a.data("tinymce-id"))}})),i(document).on("tinymce-editor-setup",(function(){var i=e.find(".wp-editor-wrap");i.length>0&&!i.hasClass(r.selectedEditor+"-active")&&setTimeout((function(){window.switchEditors.go(m)}),10)})),t.remove(m),window.tinymce&&window.tinymce.EditorManager.overrideDefaults({base_url:r.baseURL,suffix:r.suffix}),f.is(":visible"))t.initialize(m,r);else var w=setInterval((function(){f.is(":visible")&&(t.initialize(m,r),clearInterval(w))}),500);e.on("click",(function(t){var n=i(t.target);if(n.is(".wp-switch-editor")){var o=n.hasClass("switch-tmce")?"tmce":"html";if("tmce"===o){var a=window.tinymce.get(m);if(null!==a){var c=f.val();-1!==c.search("<")&&-1===c.search(">")&&(c=c.replace(/</g,""),f.val(c)),a.setContent(window.switchEditors.wpautop(c))}}r.selectedEditor=o,e.find(".siteorigin-widget-tinymce-selected-editor").val(o)}})),e.data("initialized",!0)}};i(document).on("sowsetupformfield",".siteorigin-widget-field-type-tinymce",(function(){var t=i(this),n=t.closest(".siteorigin-widget-field-repeater-item-form");n.length>0?n.is(":visible")?e(t):n.on("slideToggleOpenComplete",(function(){n.is(":visible")&&(e(t),n.off("slideToggleOpenComplete"))})):e(t)})),i(document).on("sortstop",(function(t,n){(n.item.is(".siteorigin-widget-field-repeater-item")?n.item.find("> .siteorigin-widget-field-repeater-item-form"):n.item.find(".siteorigin-widget-form")).find(".siteorigin-widget-field-type-tinymce").each((function(){i(this).data("initialized",null),e(i(this))}))}))}(jQuery);
readme.txt CHANGED
@@ -3,8 +3,8 @@ Tags: bundle, widget, button, slider, image, carousel, price table, google maps,
3
  Requires at least: 4.2
4
  Tested up to: 5.5
5
  Requires PHP: 5.6.20
6
- Stable tag: 1.17.9
7
- Build time: 2020-11-12T17:30:01+02:00
8
  License: GPLv3 or later
9
  Contributors: gpriday, braam-genis
10
  Donate link: https://siteorigin.com/downloads/premium/
@@ -66,6 +66,9 @@ The SiteOrigin Widgets Bundle is the perfect platform to build widgets for your
66
 
67
  == Changelog ==
68
 
 
 
 
69
  == 1.17.9 - 12 November 2020 ==
70
  * Block Editor: Resolved widget preview issue.
71
  * Elementor: Minor admin styling improvements.
3
  Requires at least: 4.2
4
  Tested up to: 5.5
5
  Requires PHP: 5.6.20
6
+ Stable tag: 1.17.10
7
+ Build time: 2020-11-13T15:53:20+02:00
8
  License: GPLv3 or later
9
  Contributors: gpriday, braam-genis
10
  Donate link: https://siteorigin.com/downloads/premium/
66
 
67
  == Changelog ==
68
 
69
+ == 1.17.10 - 13 November 2020 ==
70
+ * TinyMCE: Resolved issue with the Add Media button.
71
+
72
  == 1.17.9 - 12 November 2020 ==
73
  * Block Editor: Resolved widget preview issue.
74
  * Elementor: Minor admin styling improvements.
so-widgets-bundle.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: SiteOrigin Widgets Bundle
4
  Description: A collection of all widgets, neatly bundled into a single plugin. It's also a framework to code your own widgets on top of.
5
- Version: 1.17.9
6
  Text Domain: so-widgets-bundle
7
  Domain Path: /lang
8
  Author: SiteOrigin
@@ -12,7 +12,7 @@ License: GPL3
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.txt
13
  */
14
 
15
- define('SOW_BUNDLE_VERSION', '1.17.9');
16
  define('SOW_BUNDLE_BASE_FILE', __FILE__);
17
 
18
  // Allow JS suffix to be pre-set
2
  /*
3
  Plugin Name: SiteOrigin Widgets Bundle
4
  Description: A collection of all widgets, neatly bundled into a single plugin. It's also a framework to code your own widgets on top of.
5
+ Version: 1.17.10
6
  Text Domain: so-widgets-bundle
7
  Domain Path: /lang
8
  Author: SiteOrigin
12
  License URI: https://www.gnu.org/licenses/gpl-3.0.txt
13
  */
14
 
15
+ define('SOW_BUNDLE_VERSION', '1.17.10');
16
  define('SOW_BUNDLE_BASE_FILE', __FILE__);
17
 
18
  // Allow JS suffix to be pre-set
widgets/google-map/css/style.css DELETED
@@ -1 +0,0 @@
1
- .sow-google-map-canvas img{-webkit-border-radius:0 !important;-moz-border-radius:0 !important;border-radius:0 !important;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important;line-height:normal !important;max-width:none !important;zoom:normal !important}