Sha256: f699ac5040cd0ec7af98c058bbae8a3057beaa3456f6781ec122a9c09dffa241
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
window.Editor = CKEDITOR Editor.active = -> target = $('.editable-long-text') target.attr('contenteditable',true) target.effect('highlight', duration: 5000) for div in target CKEDITOR.inline(div, extraPlugins: 'sourcedialog') Editor.deactive = -> $('.editable-long-text').attr('contenteditable', false) $.each(CKEDITOR.instances, (key, editor) -> editor.destroy() ) Editor.commitAll = -> $.each(CKEDITOR.instances, (key, editor) -> dataset = editor.container.$.dataset model = FrontendEditor.getCurrentModel(dataset.object) model.id = dataset.id model.set(dataset.attribute, editor.getData()) )
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
frontendeditor_ckeditor-0.0.6 | vendor/assets/javascripts/ckeditor/ckeditor_actions.coffee |