Sha256: 13a1db0004b0cfe780ada7f7d3c944f1f78c6aaf4d90764b5865f9e673d45c99

Contents?: true

Size: 1.31 KB

Versions: 298

Compression:

Stored size: 1.31 KB

Contents

(function(){tinymce.create("tinymce.plugins.VisualChars",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceVisualChars",c._toggleVisualChars,c);a.addButton("visualchars",{title:"visualchars.desc",cmd:"mceVisualChars"});a.onBeforeGetContent.add(function(d,e){if(c.state){c.state=true;c._toggleVisualChars()}})},getInfo:function(){return{longname:"Visual characters",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_toggleVisualChars:function(){var m=this,g=m.editor,a,e,f,k=g.getDoc(),l=g.getBody(),j,n=g.selection,c;m.state=!m.state;g.controlManager.setActive("visualchars",m.state);if(m.state){a=[];tinymce.walk(l,function(b){if(b.nodeType==3&&b.nodeValue&&b.nodeValue.indexOf("\u00a0")!=-1){a.push(b)}},"childNodes");for(e=0;e<a.length;e++){j=a[e].nodeValue;j=j.replace(/(\u00a0+)/g,'<span class="mceItemHidden mceVisualNbsp">$1</span>');j=j.replace(/\u00a0/g,"\u00b7");g.dom.setOuterHTML(a[e],j,k)}}else{a=tinymce.grep(g.dom.select("span",l),function(b){return g.dom.hasClass(b,"mceVisualNbsp")});for(e=0;e<a.length;e++){g.dom.setOuterHTML(a[e],a[e].innerHTML.replace(/(&middot;|\u00b7)/g,"&nbsp;"),k)}}}});tinymce.PluginManager.add("visualchars",tinymce.plugins.VisualChars)})();

Version data entries

298 entries across 264 versions & 28 rubygems

Version Path
muck-activities-3.2.1 test/public/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
noodall-ui-0.4.4 public/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
sbdevcore-0.0.6 app/assets/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
sbdevcore-0.0.5 app/assets/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
sbdevcore-0.0.4 app/assets/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
sbdevcore-0.0.3 app/assets/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
sbdevcore-0.0.1 app/assets/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
sbdev-core-0.0.1 app/assets/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
muck-services-3.3.3 test/public/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
soapbox-0.2.3 public/soapbox/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
forgeos_core-1.9.4 app/assets/javascripts/forgeos/tiny_mce/plugins/visualchars/editor_plugin.js
forgeos_core-1.9.3 app/assets/javascripts/forgeos/tiny_mce/plugins/visualchars/editor_plugin.js
soapbox-0.2.2 public/soapbox/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
soapbox-0.2.1 public/soapbox/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
soapbox-0.2.0 public/soapbox/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
soapbox-0.1.7 public/soapbox/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
soapbox-0.1.3 public/soapbox/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
soapbox-0.1.2 public/soapbox/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
soapbox-0.1.1 public/soapbox/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js
muck-commerce-3.0.1 test/public/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js