o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1364984312.1752992: @value"y {I" class:EFI"ProcessedAsset;FI"logical_path;FI"9locomotive/views/editable_elements/long_text_view.js;TI" pathname;FI"{/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/editable_elements/long_text_view.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-01-18T09:21:50+01:00;FI" length;FiHI" digest;F"%17d478fc8e9a78186b7423a5ef20db89I" source;FI"H(function() { var _base, _ref, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; (_base = Locomotive.Views).EditableElements || (_base.EditableElements = {}); Locomotive.Views.EditableElements.LongTextView = (function(_super) { __extends(LongTextView, _super); function LongTextView() { _ref = LongTextView.__super__.constructor.apply(this, arguments); return _ref; } LongTextView.prototype.tagName = 'li'; LongTextView.prototype.className = 'text input html'; LongTextView.prototype.render = function() { $(this.el).html(ich.editable_text_input(this.model.toJSON())); return this; }; LongTextView.prototype.after_render = function() { var settings, _this = this; settings = _.extend({}, this.tinymce_settings(), { oninit: (function(editor) { return $.cmd('S', (function() { _this.model.set({ content: editor.getBody().innerHTML }); return $(_this.el).parents('form').trigger('submit'); }), [], { ignoreCase: true, document: editor.dom.doc }); }), onchange_callback: function(editor) { return _this.model.set({ content: editor.getBody().innerHTML }); } }); return this.$('textarea').tinymce(settings); }; LongTextView.prototype.tinymce_settings = function() { return _.extend({ language: window.locale }, window.Locomotive.tinyMCE.defaultSettings); }; LongTextView.prototype.refresh = function() {}; LongTextView.prototype.remove = function() { this.$('textarea').tinymce().destroy(); return LongTextView.__super__.remove.apply(this, arguments); }; return LongTextView; })(Backbone.View); }).call(this); ;TI"dependency_digest;F"%37e9c837f437e2b03ceb07f9e8355c99I"required_paths;F[I"|/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/editable_elements/short_text_view.js.coffee;TI"{/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/editable_elements/long_text_view.js.coffee;TI"dependency_paths;F[{I" path;FI"{/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/editable_elements/long_text_view.js.coffee;TI" mtime;FI"2013-01-18T09:21:50+01:00;FI" digest;F"%e741ac81f519be2517aecf5cf1a0e58b{I" path;FI"|/Users/papipo/Projects/locomotive/engine/app/assets/javascripts/locomotive/views/editable_elements/short_text_view.js.coffee;TI" mtime;FI"2013-01-18T09:21:50+01:00;FI" digest;F"%109bf9ee54b9a5acff8be0f0cb4a0765I" _version;F"%6776f581a4329e299531e1d52aa59832