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.20 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.19 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.18 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.17 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.16 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.15 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.14 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.13 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.12 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.11 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.10 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.9 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.8 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.7 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.6 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.5 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.4 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.3 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.2 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js
wbase-0.3.1 lib/vendor/admin/tinymce/plugins/visualblocks/plugin.min.js