Sha256: 5b8d77a47d6fa08c0843cfa107a9bae9e5e87c89f7ef5fe4a1ca7fd047c69d7c
Contents?: true
Size: 923 Bytes
Versions: 55
Compression:
Stored size: 923 Bytes
Contents
/* Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Paste as plain text plugin */ (function() { // The pastetext command definition. var attachmentCmd = { exec : function( editor ) { editor.openDialog( 'attachment' ); return; } }; // Register the plugin. CKEDITOR.plugins.add( 'attachment', { lang : [ 'en', 'ru', 'uk' ], requires : [ 'dialog' ], init : function( editor ) { var commandName = 'attachment'; editor.addCommand( commandName, attachmentCmd ); editor.ui.addButton( 'Attachment', { label : editor.lang.attachment.button, command : commandName, icon: this.path + "images/attachment.png" }); CKEDITOR.dialog.add( commandName, CKEDITOR.getUrl( this.path + 'dialogs/attachment.js' ) ); } }); })();
Version data entries
55 entries across 55 versions & 4 rubygems