Sha256: 44640540e115de08d8cb2dd3c4490830743aeb1ccc909bfe9dc3a50761502b7c
Contents?: true
Size: 696 Bytes
Versions: 34
Compression:
Stored size: 696 Bytes
Contents
(function(){ //Section 1 : Code to execute when the toolbar button is pressed var a = { exec:function(editor){ var extjsPanel = editor.extjsPanel; var contents = extjsPanel.getValue(); extjsPanel.fireEvent('save', extjsPanel, contents); } }, //Section 2 : Create the button and add the functionality to it b = 'compasssave'; CKEDITOR.plugins.add(b,{ init:function(editor){ editor.addCommand(b,a); editor.ui.addButton('CompassSave',{ label:'Save', icon: '/images/icons/save/save_16x16.png', command:b }); } }); })();
Version data entries
34 entries across 34 versions & 1 rubygems