diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-04-03 03:29:32 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-04-03 03:29:32 -0400 |
commit | 50ac423f6e3be7566c1106647158e81b6eaae44a (patch) | |
tree | 5aeddba59f956528ef4e4715940441a1619394c0 /data/stuff/tinymce-4.3.7/plugins/wordcount | |
parent | fda56e40b460ab06b6abee98ae1bc7d5f5847c9f (diff) | |
download | old-guff-50ac423f6e3be7566c1106647158e81b6eaae44a.tar.bz2 old-guff-50ac423f6e3be7566c1106647158e81b6eaae44a.zip |
remove tinymce
Diffstat (limited to 'data/stuff/tinymce-4.3.7/plugins/wordcount')
-rw-r--r-- | data/stuff/tinymce-4.3.7/plugins/wordcount/plugin.min.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/data/stuff/tinymce-4.3.7/plugins/wordcount/plugin.min.js b/data/stuff/tinymce-4.3.7/plugins/wordcount/plugin.min.js deleted file mode 100644 index f20e765..0000000 --- a/data/stuff/tinymce-4.3.7/plugins/wordcount/plugin.min.js +++ /dev/null @@ -1 +0,0 @@ -tinymce.PluginManager.add("wordcount",function(a){function b(){a.theme.panel.find("#wordcount").text(["Words: {0}",e.getCount()])}var c,d,e=this;c=a.getParam("wordcount_countregex",/[\w\u2019\x27\-\u00C0-\u1FFF]+/g),d=a.getParam("wordcount_cleanregex",/[0-9.(),;:!?%#$?\x27\x22_+=\\\/\-]*/g),a.on("init",function(){var c=a.theme.panel&&a.theme.panel.find("#statusbar")[0];c&&tinymce.util.Delay.setEditorTimeout(a,function(){c.insert({type:"label",name:"wordcount",text:["Words: {0}",e.getCount()],classes:"wordcount",disabled:a.settings.readonly},0),a.on("setcontent beforeaddundo",b),a.on("keyup",function(a){32==a.keyCode&&b()})},0)}),e.getCount=function(){var b=a.getContent({format:"raw"}),e=0;if(b){b=b.replace(/\.\.\./g," "),b=b.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," "),b=b.replace(/(\w+)(&#?[a-z0-9]+;)+(\w+)/i,"$1$3").replace(/&.+?;/g," "),b=b.replace(d,"");var f=b.match(c);f&&(e=f.length)}return e}});
\ No newline at end of file |