Sha256: 55414fd7a1ea371e23678ce05dea76669930e3be0893277538420dfa2a8d61a1

Contents?: true

Size: 1.65 KB

Versions: 42

Compression:

Stored size: 1.65 KB

Contents

!function(){"use strict";var o=function(e){var t=e,n=function(){return t};return{get:n,set:function(e){t=e},clone:function(){return o(n())}}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(e,t){e.fire("VisualBlocks",{state:t})},s=function(e){return e.getParam("visualblocks_default_state",!1)},c=function(e){return e.settings.visualblocks_content_css},l=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),u=tinymce.util.Tools.resolve("tinymce.util.Tools"),a=l.DOM.uniqueId(),r=function(e,t){var n=u.toArray(e.getElementsByTagName("link"));if(0===u.grep(n,function(e){return e.id===a}).length){var o=l.DOM.create("link",{id:a,rel:"stylesheet",href:t});e.getElementsByTagName("head")[0].appendChild(o)}},m=function(e,t,n){var o=e.dom,s=c(e);r(e.getDoc(),s||t+"/css/visualblocks.css"),o.toggleClass(e.getBody(),"mce-visualblocks"),n.set(!n.get()),i(e,n.get())},f=function(e,t,n){e.addCommand("mceVisualBlocks",function(){m(e,t,n)})},d=function(t,e,n){t.on("PreviewFormats AfterPreviewFormats",function(e){n.get()&&t.dom.toggleClass(t.getBody(),"mce-visualblocks","afterpreviewformats"===e.type)}),t.on("init",function(){s(t)&&m(t,e,n)}),t.on("remove",function(){t.dom.removeClass(t.getBody(),"mce-visualblocks")})},n=function(n,o){return function(e){var t=e.control;t.active(o.get()),n.on("VisualBlocks",function(e){t.active(e.state)})}},v=function(e,t){e.addButton("visualblocks",{active:!1,title:"Show blocks",cmd:"mceVisualBlocks",onPostRender:n(e,t)}),e.addMenuItem("visualblocks",{text:"Show blocks",cmd:"mceVisualBlocks",onPostRender:n(e,t),selectable:!0,context:"view",prependToContext:!0})};e.add("visualblocks",function(e,t){var n=o(!1);f(e,t,n),v(e,n),d(e,t,n)})}();

Version data entries

42 entries across 40 versions & 6 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/tinymce/plugins/visualblocks/plugin.min.js
tinymce-rails-4.9.11 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
tinymce-rails-4.9.10 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
bedrock_sass-0.2.2 assets/_vendor/tinymce/plugins/visualblocks/plugin.min.js
tinymce-rails-4.9.8 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
tinymce-rails-4.9.7.1 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
tinymce-rails-4.9.7 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
tinymce-rails-4.9.6 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
tinymce-rails-4.9.4 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
tinymce-rails-4.9.3 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
card-1.96.8 mod/tinymce_editor/public/assets/tinymce/plugins/visualblocks/plugin.min.js
bedrock_sass-0.2.1 assets/_vendor/tinymce/plugins/visualblocks/plugin.min.js
optimacms-0.4.3 spec/dummy/public/js-1/tinymce/plugins/visualblocks/plugin.min.js
optimacms-0.4.3 spec/dummy/node_modules/tinymce/plugins/visualblocks/plugin.min.js
card-1.96.7 mod/tinymce_editor/public/assets/tinymce/plugins/visualblocks/plugin.min.js
optimacms-0.4.2 spec/dummy/public/js-1/tinymce/plugins/visualblocks/plugin.min.js
optimacms-0.4.2 spec/dummy/node_modules/tinymce/plugins/visualblocks/plugin.min.js
tinymce-rails-4.9.2 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
tinymce-rails-4.9.1 vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js
card-1.96.6 mod/tinymce_editor/public/assets/tinymce/plugins/visualblocks/plugin.min.js