[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/editor/atto/plugins/title/yui/build/moodle-atto_title-button/ -> moodle-atto_title-button-min.js (source)

   1  YUI.add("moodle-atto_title-button",function(e,t){var n="atto_title",r=[{text:"h3",callbackArgs:"<h3>"},{text:"h4",callbackArgs:"<h4>"},{text:"h5",callbackArgs:"<h5>"},{text:"pre",callbackArgs:"<pre>"},{text:"p",callbackArgs:"<p>"}];e.namespace("M.atto_title").Button=e.Base.create("button",e.M.editor_atto.EditorPlugin,[],{initializer:function(){var t=[];e.Array.each(r,function(e){t.push({text:M.util.get_string(e.text,n),callbackArgs:e.callbackArgs})}),this.addToolbarMenu({icon:"e/styleprops",globalItemConfig:{callback:this._changeStyle},items:t})},_changeStyle:function(e,t){document.execCommand("formatBlock",!1,t),this.markUpdated()}})},"@VERSION@",{requires:["moodle-editor_atto-plugin"]});


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1