Sha256: 598c35f8be77ce433da128cdad01ed26f185c77af3224ee7dd28931c46b9a090

Contents?: true

Size: 1.27 KB

Versions: 8

Compression:

Stored size: 1.27 KB

Contents

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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
guts-1.1.1 app/assets/javascripts/guts/vendor/tinymce/plugins/advlist/plugin.min.js
guts-1.1.0 app/assets/javascripts/guts/vendor/tinymce/plugins/advlist/plugin.min.js
guts-1.0.8 app/assets/javascripts/guts/vendor/tinymce/plugins/advlist/plugin.min.js
guts-1.0.7 app/assets/javascripts/guts/vendor/tinymce/plugins/advlist/plugin.min.js
guts-1.0.5 app/assets/javascripts/guts/vendor/tinymce/plugins/advlist/plugin.min.js
guts-1.0.3 app/assets/javascripts/guts/vendor/tinymce/plugins/advlist/plugin.min.js
tinymce-rails-4.3.3 vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js
tinymce-rails-4.3.2 vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js