{I" class:EFI"ProcessedAsset;FI"logical_path;FI"4ckeditor/plugins/templates/dialogs/templates.js;FI" pathname;FI"…/Users/yonah/.rvm/gems/ruby-1.9.3-p286/gems/ckeditor-4.0.10/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js;FI"content_type;FI"application/javascript;FI" mtime;Fl+YŤ SI" length;Fiu I" digest;F"%efec54243d350dd80502a4115527bde3I" source;FI"u /* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ (function(){CKEDITOR.dialog.add("templates",function(c){function o(a,b){var k=CKEDITOR.dom.element.createFromHtml('
'),d='';a.image&&b&&(d+='');d+='");k.on("click",function(){p(a.html)});return k}function p(a){var b=CKEDITOR.dialog.getCurrent();b.getValueOf("selectTpl","chkInsertOpt")?(c.fire("saveSnapshot"),c.setData(a,function(){b.hide();var a=c.createRange();a.moveToElementEditStart(c.editable());a.select();setTimeout(function(){c.fire("saveSnapshot")},0)})):(c.insertHtml(a),b.hide())}function i(a){var b=a.data.getTarget(), c=g.equals(b);if(c||g.contains(b)){var d=a.data.getKeystroke(),f=g.getElementsByTag("a"),e;if(f){if(c)e=f.getItem(0);else switch(d){case 40:e=b.getNext();break;case 38:e=b.getPrevious();break;case 13:case 32:b.fire("click")}e&&(e.focus(),a.data.preventDefault())}}}var h=CKEDITOR.plugins.get("templates");CKEDITOR.document.appendStyleSheet(CKEDITOR.getUrl(h.path+"dialogs/templates.css"));var g,h="cke_tpl_list_label_"+CKEDITOR.tools.getNextNumber(),f=c.lang.templates,l=c.config;return{title:c.lang.templates.title, minWidth:CKEDITOR.env.ie?440:400,minHeight:340,contents:[{id:"selectTpl",label:f.title,elements:[{type:"vbox",padding:5,children:[{id:"selectTplText",type:"html",html:""+f.selectPromptMsg+""},{id:"templatesList",type:"html",focus:!0,html:'
'+f.options+""},{id:"chkInsertOpt",type:"checkbox",label:f.insertOption, "default":l.templates_replaceContent}]}]}],buttons:[CKEDITOR.dialog.cancelButton],onShow:function(){var a=this.getContentElement("selectTpl","templatesList");g=a.getElement();CKEDITOR.loadTemplates(l.templates_files,function(){var b=(l.templates||"default").split(",");if(b.length){var c=g;c.setHtml("");for(var d=0,h=b.length;d'+f.emptyListMsg+"")});this._.element.on("keydown",i)},onHide:function(){this._.element.removeListener("keydown",i)}}})})(); ;TI"dependency_digest;F"%fcc5473b6d8a1dd681671d787fe1c5cbI"required_paths;F[I"…/Users/yonah/.rvm/gems/ruby-1.9.3-p286/gems/ckeditor-4.0.10/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js;FI"dependency_paths;F[{I" path;FI"…/Users/yonah/.rvm/gems/ruby-1.9.3-p286/gems/ckeditor-4.0.10/vendor/assets/javascripts/ckeditor/plugins/templates/dialogs/templates.js;FI" mtime;FI"2014-02-25T13:32:25+01:00;FI" digest;F"%ea9d4b07a4278ae0fceb357d44642743I" _version;F"%a56df69ef97ba4d9f1a23bf9b0add58a