{:uriI"ûfile:///Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-fcede35aeb76/app/assets/javascripts/alchemy/alchemy.tinymce.js.coffee?type=application/javascript&pipeline=self&id=6d705d22b88f67f2b11b44bad0bf599ffb699dfb5320ae2aaa8564c99a327dbe:ET:load_pathI"i/Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-fcede35aeb76/app/assets/javascripts;T: filenameI"†/Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-fcede35aeb76/app/assets/javascripts/alchemy/alchemy.tinymce.js.coffee;T: nameI"alchemy/alchemy.tinymce;T:logical_pathI"$alchemy/alchemy.tinymce.self.js;T:content_typeI"application/javascript;T: sourceI"1 (function() { $.extend(Alchemy.Tinymce, { customConfigs: {}, getDefaultConfig: function(id) { var config; config = this.defaults; config.language = Alchemy.locale; config.selector = "#tinymce_" + id; config.init_instance_callback = this.initInstanceCallback; return config; }, getConfig: function(id, selector) { var editor_config; editor_config = this.customConfigs[selector]; if (editor_config) { return $.extend({}, this.getDefaultConfig(id), editor_config); } else { return this.getDefaultConfig(id); } }, init: function(ids) { var i, id, len, results; results = []; for (i = 0, len = ids.length; i < len; i++) { id = ids[i]; results.push(this.initEditor(id)); } return results; }, initWith: function(options) { tinymce.init($.extend({}, this.defaults, options)); }, initEditor: function(id) { var config, spinner, textarea; textarea = $("#tinymce_" + id); if (textarea.length === 0) { Alchemy.log_error("Could not initialize TinyMCE for textarea#tinymce_" + id + "!"); return; } config = this.getConfig(id, textarea[0].classList[1]); if (config) { spinner = Alchemy.Spinner.small(); textarea.closest('.tinymce_container').prepend(spinner.spin().el); return tinymce.init(config); } else { return Alchemy.debug('No tinymce configuration found for', id); } }, initInstanceCallback: function(inst) { var $this, parent; $this = $("#" + inst.id); parent = $this.closest('.element-editor'); parent.find('.spinner').remove(); return inst.on('change', function(e) { return Alchemy.setElementDirty(parent); }); }, remove: function(ids) { var editor, i, id, len, results; results = []; for (i = 0, len = ids.length; i < len; i++) { id = ids[i]; editor = tinymce.get("tinymce_" + id); if (editor) { results.push(editor.remove()); } else { results.push(void 0); } } return results; }, removeFrom: function(selector) { $(selector).each(function() { tinymce.get(this.id).remove(); }); } }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"”file-digest:///Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-fcede35aeb76/app/assets/javascripts/alchemy/alchemy.tinymce.js.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%É .„_b <.Ðqü®Ô¤˜®6‰2ËŽ‡€×â*V: lengthi1 :dependencies_digest"%Q㛥‰Ê’H>>bšõõ}úÐÁÁ%0ºŒsåÏÊ:idI"E6d705d22b88f67f2b11b44bad0bf599ffb699dfb5320ae2aaa8564c99a327dbe;F: mtimel+ÿX