Sha256: d3a5c1c5a8e96245866e60d48addb3008c98aa859faef723bc1d06deb6fae353

Contents?: true

Size: 1.23 KB

Versions: 29

Compression:

Stored size: 1.23 KB

Contents

tinymce.PluginManager.add("advlist",function(t){function e(t,e){var n=[];return tinymce.each(e.split(/[ ,]/),function(t){n.push({text:t.replace(/\-/g," ").replace(/\b\w/g,function(t){return t.toUpperCase()}),data:"default"==t?"":t})}),n}function n(e,n){var i,r=t.dom,a=t.selection;i=r.getParent(a.getNode(),"ol,ul"),i&&i.nodeName==e&&n!==!1||t.execCommand("UL"==e?"InsertUnorderedList":"InsertOrderedList"),n=n===!1?o[e]:n,o[e]=n,i=r.getParent(a.getNode(),"ol,ul"),i&&(r.setStyle(i,"listStyleType",n),i.removeAttribute("data-mce-style")),t.focus()}function i(e){var n=t.dom.getStyle(t.dom.getParent(t.selection.getNode(),"ol,ul"),"listStyleType")||"";e.control.items().each(function(t){t.active(t.settings.data===n)})}var r,a,o={};r=e("OL",t.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman")),a=e("UL",t.getParam("advlist_bullet_styles","default,circle,disc,square")),t.addButton("numlist",{type:"splitbutton",tooltip:"Numbered list",menu:r,onshow:i,onselect:function(t){n("OL",t.control.settings.data)},onclick:function(){n("OL",!1)}}),t.addButton("bullist",{type:"splitbutton",tooltip:"Bullet list",menu:a,onshow:i,onselect:function(t){n("UL",t.control.settings.data)},onclick:function(){n("UL",!1)}})});

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
tinymce-rails-4.0.8 vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js
tinymce-rails-4.0.7 vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js
tinymce-rails4-4.0.6 app/assets/javascripts/plugins/advlist/plugin.min.js
it-logica-application-backbone-1.4.4 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advlist/plugin.min.js
it-logica-application-backbone-1.4.3 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advlist/plugin.min.js
tinymce-rails-4.0.6 vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js
it-logica-application-backbone-1.4.2 app/assets/javascripts/backbone_js/tinymce/jscripts/tiny_mce/plugins/advlist/plugin.min.js
tinymce-rails-4.0.2 vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js
tinymce-rails-4.0.1 vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js