File Editor
Directories:
.. (Back)
chartjs
datepicker
jqvmap
select2
Files:
admin.min.js
mini-chart.js
mini-chart.min.js
tinymce.min.js
tracker.js
tracker.min.js
Create New File
Create
Edit File: tinymce.min.js
jQuery(document).on("tinymce-editor-setup",function(t,a){a.addButton("wp_statistic_tc_button",{text:"",tooltip:a.getLang("wp_statistic_tinymce_plugin.insert"),icon:"icon-statistic dashicons-chart-pie",onclick:function(){a.windowManager.open({title:a.getLang("wp_statistic_tinymce_plugin.insert"),minWidth:500,minHeight:480,body:[{type:"listbox",name:"stat",label:a.getLang("wp_statistic_tinymce_plugin.stat"),values:[{text:a.getLang("wp_statistic_tinymce_plugin.usersonline"),value:"usersonline"},{text:a.getLang("wp_statistic_tinymce_plugin.visits"),value:"visits"},{text:a.getLang("wp_statistic_tinymce_plugin.visitors"),value:"visitors"},{text:a.getLang("wp_statistic_tinymce_plugin.pagevisits"),value:"pagevisits"},{text:a.getLang("wp_statistic_tinymce_plugin.pagevisitors"),value:"pagevisitors"},{text:a.getLang("wp_statistic_tinymce_plugin.searches"),value:"searches"},{text:a.getLang("wp_statistic_tinymce_plugin.postcount"),value:"postcount"},{text:a.getLang("wp_statistic_tinymce_plugin.pagecount"),value:"pagecount"},{text:a.getLang("wp_statistic_tinymce_plugin.commentcount"),value:"commentcount"},{text:a.getLang("wp_statistic_tinymce_plugin.spamcount"),value:"spamcount"},{text:a.getLang("wp_statistic_tinymce_plugin.usercount"),value:"usercount"},{text:a.getLang("wp_statistic_tinymce_plugin.postaverage"),value:"postaverage"},{text:a.getLang("wp_statistic_tinymce_plugin.commentaverage"),value:"commentaverage"},{text:a.getLang("wp_statistic_tinymce_plugin.useraverage"),value:"useraverage"},{text:a.getLang("wp_statistic_tinymce_plugin.lpd"),value:"lpd"},{text:a.getLang("wp_statistic_tinymce_plugin.referrer"),value:"referrer"}]},{type:"container",html:'<div class="wp-statistic-mce-desc">'+a.getLang("wp_statistic_tinymce_plugin.help_stat")+" </div>"},{type:"listbox",name:"time",label:a.getLang("wp_statistic_tinymce_plugin.time"),values:[{text:a.getLang("wp_statistic_tinymce_plugin.se"),value:"0"},{text:a.getLang("wp_statistic_tinymce_plugin.today"),value:"today"},{text:a.getLang("wp_statistic_tinymce_plugin.yesterday"),value:"yesterday"},{text:a.getLang("wp_statistic_tinymce_plugin.week"),value:"week"},{text:a.getLang("wp_statistic_tinymce_plugin.month"),value:"month"},{text:a.getLang("wp_statistic_tinymce_plugin.year"),value:"year"},{text:a.getLang("wp_statistic_tinymce_plugin.total"),value:"total"}]},{type:"container",html:'<div class="wp-statistic-mce-desc">'+a.getLang("wp_statistic_tinymce_plugin.help_time")+"</div>"},{type:"textbox",name:"provider",label:a.getLang("wp_statistic_tinymce_plugin.provider")},{type:"container",html:'<div class="wp-statistic-mce-desc">'+a.getLang("wp_statistic_tinymce_plugin.help_provider")+"</div>"},{type:"textbox",name:"format",label:a.getLang("wp_statistic_tinymce_plugin.format")},{type:"container",html:'<div class="wp-statistic-mce-desc">'+a.getLang("wp_statistic_tinymce_plugin.help_format")+"</div>"},{type:"textbox",name:"id",label:a.getLang("wp_statistic_tinymce_plugin.id")},{type:"container",html:'<div class="wp-statistic-mce-desc">'+a.getLang("wp_statistic_tinymce_plugin.help_id")+"</div>"}],onsubmit:function(e){var i="[wpstatistics stat="+e.data.stat;"0"!==e.data.time&&(i+=" time="+e.data.time);["provider","format","id"].forEach(function(t){""!==e.data[t]&&(i+=" "+t+"="+e.data[t])}),i+="]",a.insertContent(i)}})}})});
Save Changes
Rename File
Rename