on-demand release 4.0dev+
[moodle.git] / lib / editor / atto / plugins / title / yui / build / moodle-atto_title-button / moodle-atto_title-button-min.js
CommitLineData
29c5faff 1YUI.add("moodle-atto_title-button",function(t,a){var e=[{text:"h3",callbackArgs:"<h3>"},{text:"h4",callbackArgs:"<h4>"},{text:"h5",callbackArgs:"<h5>"},{text:"pre",callbackArgs:"<pre>"},{text:"p",callbackArgs:"<p>"}];t.namespace("M.atto_title").Button=t.Base.create("button",t.M.editor_atto.EditorPlugin,[],{initializer:function(){var a=[];t.Array.each(e,function(t){a.push({text:M.util.get_string(t.text,"atto_title"),callbackArgs:t.callbackArgs})}),this.addToolbarMenu({icon:"e/styleparagraph",globalItemConfig:{callback:this._changeStyle},items:a})},_changeStyle:function(t,a){document.execCommand("formatBlock",!1,a),this.markUpdated()}})},"@VERSION@",{requires:["moodle-editor_atto-plugin"]});