PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.2.0
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.2.0
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 3.10.4 All 148 releases
← All changes | js/mce.js +2 -16 3.10.133.2.0 View file →
@@ -2,10 +2,10 @@
2 2 /* jshint unused:false */
3 3 (function($) {
4 4 tinymce.PluginManager.add('visualizer_mce_button', function( editor, url ) {
5 5 editor.addButton( 'visualizer_mce_button', {
6 - title: getTranslation( editor, 'plugin_label' ),
7 - label: getTranslation( editor, 'plugin_label' ),
6 + title: editor.getLang( 'visualizer_tinymce_plugin.plugin_label' ),
7 + label: editor.getLang( 'visualizer_tinymce_plugin.plugin_label' ),
8 8 icon: 'visualizer-icon',
9 9 onclick: function() {
10 10 var frame = wp.media({
11 11 frame:'post',
@@ -14,20 +14,6 @@
14 14 frame.open( );
15 15 }
16 16 });
17 17 });
18 -
19 - /**
20 - * Gets the translation from the editor (when classic editor is enabled)
21 - * OR
22 - * from the settings array inside the editor (when classic block inside gutenberg)
23 - */
24 - function getTranslation(editor, slug){
25 - var string = editor.getLang('visualizer_tinymce_plugin.' + slug);
26 - // if the string is the same as the slug being requested for, look in the settings.
27 - if(string === '{#visualizer_tinymce_plugin.' + slug + '}'){
28 - string = editor.settings.visualizer_tinymce_plugin[slug];
29 - }
30 - return string;
31 - }
32 18
33 19 })(jQuery);