Sha256: 4938281fcc3e4cfa8c10acec789bd54e758a64c8d2b7cccd614ddf3deeea7f65

Contents?: true

Size: 1.1 KB

Versions: 39

Compression:

Stored size: 1.1 KB

Contents

tinymce.PluginManager.add("noneditable",function(a){function b(a){return function(b){return-1!==(" "+b.attr("class")+" ").indexOf(a)}}function c(b){function c(b){var c=arguments,d=c[c.length-2];return d>0&&'"'==g.charAt(d-1)?b:'<span class="'+h+'" data-mce-content="'+a.dom.encode(c[0])+'">'+a.dom.encode("string"==typeof c[1]?c[1]:c[0])+"</span>"}var d=f.length,g=b.content,h=tinymce.trim(e);if("raw"!=b.format){for(;d--;)g=g.replace(f[d],c);b.content=g}}var d,e,f,g="contenteditable";d=" "+tinymce.trim(a.getParam("noneditable_editable_class","mceEditable"))+" ",e=" "+tinymce.trim(a.getParam("noneditable_noneditable_class","mceNonEditable"))+" ";var h=b(d),i=b(e);f=a.getParam("noneditable_regexp"),f&&!f.length&&(f=[f]),a.on("PreInit",function(){f&&a.on("BeforeSetContent",c),a.parser.addAttributeFilter("class",function(a){for(var b,c=a.length;c--;)b=a[c],h(b)?b.attr(g,"true"):i(b)&&b.attr(g,"false")}),a.serializer.addAttributeFilter(g,function(a){for(var b,c=a.length;c--;)b=a[c],(h(b)||i(b))&&(f&&b.attr("data-mce-content")?(b.name="#text",b.type=3,b.raw=!0,b.value=b.attr("data-mce-content")):b.attr(g,null))})})});

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
wbase-0.3.20 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.19 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.18 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.17 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.16 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.15 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.14 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.13 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.12 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.11 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.10 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.9 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.8 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.7 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.6 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.5 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.4 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.3 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.2 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js
wbase-0.3.1 lib/vendor/admin/tinymce/plugins/noneditable/plugin.min.js