Sha256: a35bbfdef25b8781968c1db92ecd0e83bf8ab2cc977a7bc7c1989c5312972b77
Contents?: true
Size: 851 Bytes
Versions: 11
Compression:
Stored size: 851 Bytes
Contents
CKEDITOR.plugins.add('edit_content', { icons:'editcontent', init:function (editor) { editor.ui.addButton('EditContent', { label:'Edit this content in the full editor.', command:'editContent', toolbar:'tools' }); // When the user clicks the 'Edit Content' button, save any changes they made already, then take them to editor.addCommand('editContent', { exec:function (editor) { var goto_edit = function(){ window.parent.location = $.cms_editor.selectedConnector().data('edit-path'); }; if (editor.checkDirty()) { $.cms_editor.saveChanges(editor, goto_edit); } else { goto_edit.apply(); } } }); } });
Version data entries
11 entries across 11 versions & 2 rubygems