Sha256: 988f21937dfb24d88d101077d79877687784c8e72bb6f006a32fa02850c88c0f

Contents?: true

Size: 673 Bytes

Versions: 7

Compression:

Stored size: 673 Bytes

Contents

(function () {
  var esp_attachmentCmd = {
    exec: function (editor) {
      editor.openDialog('esp_attachment');
      return
    }
  };
  CKEDITOR.plugins.add('esp_attachment', {
    lang: ['en', 'ru', 'uk'],
    requires: ['dialog'],
    init: function (editor) {
      var commandName = 'esp_attachment';
      editor.addCommand(commandName, esp_attachmentCmd);
      editor.ui.addButton('Esp_attachment', {
        label: editor.lang.esp_attachment.button,
        command: commandName,
        icon: this.path + "images/esp_attachment.png"
      });
      CKEDITOR.dialog.add(commandName, CKEDITOR.getUrl(this.path + 'dialogs/esp_attachment.js'))
    }
  })
})();

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
esp-ckeditor-0.1.7 vendor/assets/javascripts/_source/plugins/esp_attachment/plugin.js
esp-ckeditor-0.1.6 vendor/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/plugin.js
esp-ckeditor-0.1.4 vendor/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/plugin.js
esp-ckeditor-0.1.3 app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/plugin.js
esp-ckeditor-0.1.2 app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/plugin.js
esp-ckeditor-0.1.1 app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/plugin.js
esp-ckeditor-0.1.0 app/assets/javascripts/esp-ckeditor/_source/plugins/esp_attachment/plugin.js