Blame view

mobile/source/ext/ckeditor/plugins/upload/plugin.js 449 Bytes
a1684257   Administrator   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  CKEDITOR.plugins.add('upload', {
    init : function(editor) {
    
      var command = editor.addCommand('upload', new CKEDITOR.dialogCommand('upload'));
      command.modes = {wysiwyg:1, source:1};
      command.canUndo = true;
  
      editor.ui.addButton('upload', {
        label : 'Создать Cut',
        command : 'upload',
        icon: this.path + 'images/icon2.png'
      });
  
      CKEDITOR.dialog.add('upload', this.path + 'dialogs/upload.js');
    }
  });