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/visualchars | |
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/visualchars')
-rw-r--r-- | data/stuff/tinymce-4.3.7/plugins/visualchars/plugin.min.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/data/stuff/tinymce-4.3.7/plugins/visualchars/plugin.min.js b/data/stuff/tinymce-4.3.7/plugins/visualchars/plugin.min.js deleted file mode 100644 index 80183aa..0000000 --- a/data/stuff/tinymce-4.3.7/plugins/visualchars/plugin.min.js +++ /dev/null @@ -1 +0,0 @@ -tinymce.PluginManager.add("visualchars",function(a){function b(b){function c(a){return'<span data-mce-bogus="1" class="mce-'+n[a]+'">'+a+"</span>"}function f(){var a,b="";for(a in n)b+=a;return new RegExp("["+b+"]","g")}function g(){var a,b="";for(a in n)b&&(b+=","),b+="span.mce-"+n[a];return b}var h,i,j,k,l,m,n,o,p=a.getBody(),q=a.selection;if(n={"\xa0":"nbsp","\xad":"shy"},d=!d,e.state=d,a.fire("VisualChars",{state:d}),o=f(),b&&(m=q.getBookmark()),d)for(i=[],tinymce.walk(p,function(a){3==a.nodeType&&a.nodeValue&&o.test(a.nodeValue)&&i.push(a)},"childNodes"),j=0;j<i.length;j++){for(k=i[j].nodeValue,k=k.replace(o,c),l=a.dom.create("div",null,k);h=l.lastChild;)a.dom.insertAfter(h,i[j]);a.dom.remove(i[j])}else for(i=a.dom.select(g(),p),j=i.length-1;j>=0;j--)a.dom.remove(i[j],1);q.moveToBookmark(m)}function c(){var b=this;a.on("VisualChars",function(a){b.active(a.state)})}var d,e=this;a.addCommand("mceVisualChars",b),a.addButton("visualchars",{title:"Show invisible characters",cmd:"mceVisualChars",onPostRender:c}),a.addMenuItem("visualchars",{text:"Show invisible characters",cmd:"mceVisualChars",onPostRender:c,selectable:!0,context:"view",prependToContext:!0}),a.on("beforegetcontent",function(a){d&&"raw"!=a.format&&!a.draft&&(d=!0,b(!1))})});
\ No newline at end of file |