PluginProbe ʕ •ᴥ•ʔ
WP Fastest Cache – WordPress Cache Plugin / 1.4.9
WP Fastest Cache – WordPress Cache Plugin v1.4.9
1.4.9 1.4.8 trunk 0.8.6.6 0.8.6.7 0.8.6.8 0.8.6.9 0.8.7.0 0.8.7.1 0.8.7.2 0.8.7.3 0.8.7.4 0.8.7.5 0.8.7.6 0.8.7.7 0.8.7.8 0.8.7.9 0.8.8.0 0.8.8.1 0.8.8.2 0.8.8.3 0.8.8.4 0.8.8.5 0.8.8.6 0.8.8.7 0.8.8.8 0.8.8.9 0.8.9.0 0.8.9.1 0.8.9.2 0.8.9.3 0.8.9.4 0.8.9.5 0.8.9.6 0.8.9.7 0.8.9.8 0.8.9.9 0.9.0.0 0.9.0.1 0.9.0.2 0.9.0.3 0.9.0.4 0.9.0.5 0.9.0.6 0.9.0.7 0.9.0.8 0.9.0.9 0.9.1.0 0.9.1.1 0.9.1.2 0.9.1.3 0.9.1.4 0.9.1.5 0.9.1.6 0.9.1.7 0.9.1.8 0.9.1.9 0.9.2 0.9.3 0.9.4 0.9.5 0.9.6 0.9.7 0.9.8 0.9.9 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7
wp-fastest-cache / js / button.js
wp-fastest-cache / js Last commit date
cdn 3 years ago button.js 11 years ago column.js 6 years ago db.js 2 weeks ago dialog.js 8 years ago dialog_new.js 1 year ago index.html 11 years ago language.js 8 years ago schedule.js 11 years ago toolbar.js 5 years ago
button.js
59 lines
1 (function() {
2 tinymce.create('tinymce.plugins.Wpfc', {
3 wpfcNotHTML : '',
4 url: '',
5 init : function(ed, url) {
6 var self = this;
7 self.setUrl(url);
8 self.setWpfcNotHTML();
9
10 ed.addButton('wpfc', {
11 title : 'Block caching for this page',
12 cmd : 'wpfc',
13 image : self.url + "/icon.png"
14 });
15
16 ed.addCommand('wpfc', function() {
17 ed.execCommand('mceInsertContent', 0, self.wpfcNotHTML);
18 });
19
20 self._handleWpfcNOT(ed, url);
21 },
22 setUrl: function(url){
23 this.url = url.replace("../js","../images");
24 },
25 setWpfcNotHTML: function(){
26 this.wpfcNotHTML = '<img src="' + this.url + "/tinymce-wpfcnot.jpg" + '" class="mce-wp-wpfcnot" style="margin-right:95%;" />';
27 },
28 _handleWpfcNOT : function(ed, url) {
29 var self = this;
30 ed.onPostRender.add(function() {
31 if (ed.theme.onResolveName) {
32 ed.theme.onResolveName.add(function(th, o) {
33 if (o.node.nodeName == 'IMG') {
34 if ( ed.dom.hasClass(o.node, 'mce-wp-wpfcnot') ){
35 o.name = 'wpfcnot';
36 }
37 }
38 });
39 }
40 });
41 ed.onBeforeSetContent.add(function(ed, o) {
42 if ( o.content ) {
43 o.content = o.content.replace(/<\!--\s*\[wpfcNOT\]\s*-->/, self.wpfcNotHTML);
44 }
45 });
46 ed.onPostProcess.add(function(ed, o) {
47 if (o.get){
48 o.content = o.content.replace(/<img[^>]+>/g, function(im) {
49 if (im.indexOf('class="mce-wp-wpfcnot') !== -1) {
50 im = '<!--[wpfcNOT]-->';
51 }
52 return im;
53 });
54 }
55 });
56 }
57 });
58 tinymce.PluginManager.add( 'wpfc', tinymce.plugins.Wpfc );
59 })();