Sha256: 353cbb9d6d3604919d23465806951a7c558bdec90d97834d6ca3bcaee9b5ddb6

Contents?: true

Size: 1.13 KB

Versions: 21

Compression:

Stored size: 1.13 KB

Contents

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

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
mosaico-2.0.0 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/visualblocks/plugin.min.js
mosaico-1.1.1 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/visualblocks/plugin.min.js
mosaico-1.1.0 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/visualblocks/plugin.min.js
mosaico-1.0.2 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/visualblocks/plugin.min.js
mosaico-1.0.1 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/visualblocks/plugin.min.js
mosaico-1.0.0 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/visualblocks/plugin.min.js
tinymce-rails-4.5.7 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
tinymce-rails-4.5.6 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
tinymce-rails-4.5.5 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
tinymce-rails-4.5.4 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
tinymce-rails-4.5.3 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
tinymce-rails-4.5.2 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
tinymce-rails-4.5.1 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
guts-1.1.1 app/assets/javascripts/guts/vendor/tinymce/plugins/visualblocks/plugin.min.js
guts-1.1.0 app/assets/javascripts/guts/vendor/tinymce/plugins/visualblocks/plugin.min.js
guts-1.0.8 app/assets/javascripts/guts/vendor/tinymce/plugins/visualblocks/plugin.min.js
guts-1.0.7 app/assets/javascripts/guts/vendor/tinymce/plugins/visualblocks/plugin.min.js
guts-1.0.5 app/assets/javascripts/guts/vendor/tinymce/plugins/visualblocks/plugin.min.js
guts-1.0.3 app/assets/javascripts/guts/vendor/tinymce/plugins/visualblocks/plugin.min.js
tinymce-rails-4.3.3 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js