Sha256: a8c4043b90fe55634bda255320711b959baabd9f4f9f89aa436e16425e676b5b
Contents?: true
Size: 617 Bytes
Versions: 2
Compression:
Stored size: 617 Bytes
Contents
Locomotive.Views.EditableElements ||= {} class Locomotive.Views.EditableElements.ShortTextView extends Backbone.View tagName: 'li' className: 'text input html' render: -> $(@el).html(ich.editable_text_input(@model.toJSON())) return @ after_render: -> settings = _.extend {}, @tinymce_settings(), onchange_callback: (editor) => @model.set(content: editor.getBody().innerHTML) @$('textarea').tinymce(settings) tinymce_settings: -> window.Locomotive.tinyMCE.minimalSettings refresh: -> # do nothing remove: -> @$('textarea').tinymce().destroy() super
Version data entries
2 entries across 2 versions & 1 rubygems