Sha256: 0a0f01b9607dd3e0acbde63e7716938e2e6a9471515241aecf2d17932b768029

Contents?: true

Size: 1.13 KB

Versions: 114

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

114 entries across 114 versions & 6 rubygems

Version Path
optimacms-0.1.61 spec/dummy/public/js/tinymce/plugins/visualblocks/plugin.min.js
optimacms-0.3.30 spec/dummy/public/js/tinymce/plugins/visualblocks/plugin.min.js
optimacms-0.3.29 spec/dummy/public/js/tinymce/plugins/visualblocks/plugin.min.js
goldencobra-2.3.4 app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/plugin.min.js
optimacms-0.3.23 spec/dummy/public/js/tinymce/plugins/visualblocks/plugin.min.js
goldencobra-2.3.3 app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/plugin.min.js
jinda_bsb-0.0.1 lib/generators/jinda_bsb/templates/app/assets/jinda_assets/plugins/tinymce/plugins/visualblocks/plugin.min.js
optimacms-0.3.15 spec/dummy/public/js/tinymce/plugins/visualblocks/plugin.min.js
optimacms-0.3.12 spec/dummy/public/js/tinymce/plugins/visualblocks/plugin.min.js
optimacms-0.3.11 spec/dummy/public/js/tinymce/plugins/visualblocks/plugin.min.js
mirador_rails-0.3.3 vendor/assets/plugins/plugins/visualblocks/plugin.min.js
optimacms-0.3.9 spec/dummy/public/js/tinymce/plugins/visualblocks/plugin.min.js
mirador_rails-0.3.2 vendor/assets/plugins/plugins/visualblocks/plugin.min.js
mirador_rails-0.3.1 vendor/assets/plugins/plugins/visualblocks/plugin.min.js
optimacms-0.3.8 spec/dummy/public/js/tinymce/plugins/visualblocks/plugin.min.js
optimacms-0.3.7 spec/dummy/public/js/tinymce/plugins/visualblocks/plugin.min.js
optimacms-0.3.6 spec/dummy/public/js/tinymce/plugins/visualblocks/plugin.min.js
optimacms-0.3.5 spec/dummy/public/js/tinymce/plugins/visualblocks/plugin.min.js
mirador_rails-0.3.0 vendor/assets/plugins/plugins/visualblocks/plugin.min.js
mirador_rails-0.1.1 vendor/assets/plugins/plugins/visualblocks/plugin.min.js