o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1383239455.3561049: @value"’{I" class:ETI"ProcessedAsset;FI"logical_path;TI"4locomotive/views/editable_elements/text_view.js;FI" pathname;TI"¤/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/assets/javascripts/locomotive/views/editable_elements/text_view.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;TI"2013-10-31T17:26:43+01:00;TI" length;TiG I" digest;TI"%4c402c3f2e4878a09d571fb6072b5466;FI" source;TI"G (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.getContent() }); return $(_this.el).parents('form').trigger('submit'); }), [], { ignoreCase: true, document: editor.dom.doc }); }), onchange_callback: function(editor) { return _this.model.set({ content: editor.getContent() }); } }); }; 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;TI"%d91994c25691d4a606c84069c85c292d;FI"required_paths;T[I"¤/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/assets/javascripts/locomotive/views/editable_elements/text_view.js.coffee;FI"dependency_paths;T[{I" path;TI"¤/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/assets/javascripts/locomotive/views/editable_elements/text_view.js.coffee;FI" mtime;TI"2013-10-31T17:26:43+01:00;TI" digest;TI"%85c9978f9f9db0863341948ecc5b2b02;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F