o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1416672644.9029: @value"{I" class:ETI"ProcessedAsset;FI"logical_path;TI"4locomotive/views/editable_elements/text_view.js;FI" pathname;TI"Ÿ/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/assets/javascripts/locomotive/views/editable_elements/text_view.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;TI"2014-11-22T16:47:36+01:00;TI" length;TiÊ I" digest;TI"%1c6958b2cd7dec62873d83b8420dff59;FI" source;TI"Ê (function() { var _base, __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() { return TextView.__super__.constructor.apply(this, arguments); } 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() { if (this.model.get('format') === 'html') { return this.$('textarea').tinymce(this.tinymce_settings()); } else { return this.$('textarea').bind('keyup', (function(_this) { return function(event) { var input; input = $(event.target); return _this.model.set({ content: input.val() }); }; })(this)); } }; TextView.prototype.tinymce_settings = function() { var base_settings; 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(_this) { return 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 }); }; })(this)), onchange_callback: (function(_this) { return function(editor) { return _this.model.set({ content: editor.getContent() }); }; })(this) }); }; 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"%e6208bac9cd05805ed6e952fc11fce59;FI"required_paths;T[I"Ÿ/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/assets/javascripts/locomotive/views/editable_elements/text_view.js.coffee;FI"dependency_paths;T[{I" path;TI"Ÿ/Users/didier/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/locomotive_cms-2.5.5/app/assets/javascripts/locomotive/views/editable_elements/text_view.js.coffee;FI" mtime;TI"2014-11-22T16:47:36+01:00;TI" digest;TI"%85c9978f9f9db0863341948ecc5b2b02;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F