o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1381401970.2519848: @value"M{I" class:EFI"ProcessedAsset;FI"logical_path;FI"4locomotive/views/editable_elements/text_view.js;TI" pathname;FI"/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.2.3/app/assets/javascripts/locomotive/views/editable_elements/text_view.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-10-10T12:39:17+02:00;FI" length;FiU I" digest;F"%908e6963a93f91600e29db256d8b0c3eI" source;FI"U (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.TextView = (function(_super) { __extends(TextView, _super); function TextView() { _ref = TextView.__super__.constructor.apply(this, arguments); return _ref; } TextView.prototype.tagName = 'li'; TextView.prototype.className = 'text input html'; TextView.prototype.default_line_height = 20; TextView.prototype.render = function() { $(this.el).html(ich.editable_text_input(this.model.toJSON())); return this; }; TextView.prototype.after_render = function() { var _this = this; if (this.model.get('format') === 'html') { return this.$('textarea').tinymce(this.tinymce_settings()); } else { return this.$('textarea').bind('keyup', function(event) { var input; input = $(event.target); return _this.model.set({ content: input.val() }); }); } }; TextView.prototype.tinymce_settings = function() { var base_settings, _this = this; base_settings = window.Locomotive.tinyMCE.defaultSettings; if (this.model.get('line_break') === false) { base_settings = window.Locomotive.tinyMCE.minimalSettings; } return _.extend({}, base_settings, { height: this.model.get('rows') * this.default_line_height, 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 }); } }); }; TextView.prototype.refresh = function() {}; TextView.prototype.remove = function() { if (this.model.get('format') === 'html') { this.$('textarea').tinymce().remove(); } return TextView.__super__.remove.apply(this, arguments); }; return TextView; })(Backbone.View); }).call(this); ;TI"dependency_digest;F"%a2782b737f666f6e89817fa3a701f1daI"required_paths;F[I"/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.2.3/app/assets/javascripts/locomotive/views/editable_elements/text_view.js.coffee;TI"dependency_paths;F[{I" path;FI"/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.2.3/app/assets/javascripts/locomotive/views/editable_elements/text_view.js.coffee;TI" mtime;FI"2013-10-10T12:39:17+02:00;FI" digest;F"%c3367ba414364b121bfa23047495f838I" _version;F"%ffd318ca8b794f42f5029101c2cf5d91