Sha256: e60e1029b2616041f2cf7d530765485328921605725e78c9ebe8c71e772bef5b

Contents?: true

Size: 1.13 KB

Versions: 39

Compression:

Stored size: 1.13 KB

Contents

tinymce.PluginManager.add("visualblocks",function(a,b){function c(){var b=this;b.active(f),a.on("VisualBlocks",function(){b.active(a.dom.hasClass(a.getBody(),"mce-visualblocks"))})}var d,e,f;window.NodeList&&(a.addCommand("mceVisualBlocks",function(){var c,g=a.dom;d||(d=g.uniqueId(),c=g.create("link",{id:d,rel:"stylesheet",href:b+"/css/visualblocks.css"}),a.getDoc().getElementsByTagName("head")[0].appendChild(c)),a.on("PreviewFormats AfterPreviewFormats",function(b){f&&g.toggleClass(a.getBody(),"mce-visualblocks","afterpreviewformats"==b.type)}),g.toggleClass(a.getBody(),"mce-visualblocks"),f=a.dom.hasClass(a.getBody(),"mce-visualblocks"),e&&e.active(g.hasClass(a.getBody(),"mce-visualblocks")),a.fire("VisualBlocks")}),a.addButton("visualblocks",{title:"Show blocks",cmd:"mceVisualBlocks",onPostRender:c}),a.addMenuItem("visualblocks",{text:"Show blocks",cmd:"mceVisualBlocks",onPostRender:c,selectable:!0,context:"view",prependToContext:!0}),a.on("init",function(){a.settings.visualblocks_default_state&&a.execCommand("mceVisualBlocks",!1,null,{skip_focus:!0})}),a.on("remove",function(){a.dom.removeClass(a.getBody(),"mce-visualblocks")}))});

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
wbase-0.3.0 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.2.9 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.2.8 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.2.7 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.2.6 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.2.5 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.2.4 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.2.3 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.2.2 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.2.1 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.2.0 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.1.7 app/assets/javascripts/wbase/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.1.6 app/assets/javascripts/wbase/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.1.5 app/assets/javascripts/wbase/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.1.4 app/assets/javascripts/wbase/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.1.3 app/assets/javascripts/wbase/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.1.2 app/assets/javascripts/wbase/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.1.0 app/assets/javascripts/wbase/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.0.15 app/assets/javascripts/wbase/admin/tinymce/plugins/visualblocks/plugin.min.js