JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-4.0_full
[ckeditor.git] / _source / plugins / basicstyles / plugin.js
diff --git a/_source/plugins/basicstyles/plugin.js b/_source/plugins/basicstyles/plugin.js
deleted file mode 100644 (file)
index 5e928e1..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-/*\r
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
-For licensing, see LICENSE.html or http://ckeditor.com/license\r
-*/\r
-\r
-CKEDITOR.plugins.add( 'basicstyles',\r
-{\r
-       requires : [ 'styles', 'button' ],\r
-\r
-       init : function( editor )\r
-       {\r
-               // All buttons use the same code to register. So, to avoid\r
-               // duplications, let's use this tool function.\r
-               var addButtonCommand = function( buttonName, buttonLabel, commandName, styleDefiniton )\r
-               {\r
-                       var style = new CKEDITOR.style( styleDefiniton );\r
-\r
-                       editor.attachStyleStateChange( style, function( state )\r
-                               {\r
-                                       !editor.readOnly && editor.getCommand( commandName ).setState( state );\r
-                               });\r
-\r
-                       editor.addCommand( commandName, new CKEDITOR.styleCommand( style ) );\r
-\r
-                       editor.ui.addButton( buttonName,\r
-                               {\r
-                                       label : buttonLabel,\r
-                                       command : commandName\r
-                               });\r
-               };\r
-\r
-               var config = editor.config,\r
-                       lang = editor.lang;\r
-\r
-               addButtonCommand( 'Bold'                , lang.bold             , 'bold'                , config.coreStyles_bold );\r
-               addButtonCommand( 'Italic'              , lang.italic           , 'italic'              , config.coreStyles_italic );\r
-               addButtonCommand( 'Underline'   , lang.underline                , 'underline'   , config.coreStyles_underline );\r
-               addButtonCommand( 'Strike'              , lang.strike           , 'strike'              , config.coreStyles_strike );\r
-               addButtonCommand( 'Subscript'   , lang.subscript                , 'subscript'   , config.coreStyles_subscript );\r
-               addButtonCommand( 'Superscript' , lang.superscript              , 'superscript' , config.coreStyles_superscript );\r
-       }\r
-});\r
-\r
-// Basic Inline Styles.\r
-\r
-/**\r
- * The style definition that applies the <strong>bold</strong> style to the text.\r
- * @type Object\r
- * @default <code>{ element : 'strong', overrides : 'b' }</code>\r
- * @example\r
- * config.coreStyles_bold = { element : 'b', overrides : 'strong' };\r
- * @example\r
- * config.coreStyles_bold =\r
- *     {\r
- *         element : 'span',\r
- *         attributes : { 'class' : 'Bold' }\r
- *     };\r
- */\r
-CKEDITOR.config.coreStyles_bold = { element : 'strong', overrides : 'b' };\r
-\r
-/**\r
- * The style definition that applies the <em>italics</em> style to the text.\r
- * @type Object\r
- * @default <code>{ element : 'em', overrides : 'i' }</code>\r
- * @example\r
- * config.coreStyles_italic = { element : 'i', overrides : 'em' };\r
- * @example\r
- * CKEDITOR.config.coreStyles_italic =\r
- *     {\r
- *         element : 'span',\r
- *         attributes : { 'class' : 'Italic' }\r
- *     };\r
- */\r
-CKEDITOR.config.coreStyles_italic = { element : 'em', overrides : 'i' };\r
-\r
-/**\r
- * The style definition that applies the <u>underline</u> style to the text.\r
- * @type Object\r
- * @default <code>{ element : 'u' }</code>\r
- * @example\r
- * CKEDITOR.config.coreStyles_underline =\r
- *     {\r
- *         element : 'span',\r
- *         attributes : { 'class' : 'Underline' }\r
- *     };\r
- */\r
-CKEDITOR.config.coreStyles_underline = { element : 'u' };\r
-\r
-/**\r
- * The style definition that applies the <strike>strike-through</strike> style to the text.\r
- * @type Object\r
- * @default <code>{ element : 'strike' }</code>\r
- * @example\r
- * CKEDITOR.config.coreStyles_strike =\r
- *     {\r
- *         element : 'span',\r
- *         attributes : { 'class' : 'StrikeThrough' },\r
- *         overrides : 'strike'\r
- *     };\r
- */\r
-CKEDITOR.config.coreStyles_strike = { element : 'strike' };\r
-\r
-/**\r
- * The style definition that applies the subscript style to the text.\r
- * @type Object\r
- * @default <code>{ element : 'sub' }</code>\r
- * @example\r
- * CKEDITOR.config.coreStyles_subscript =\r
- *     {\r
- *         element : 'span',\r
- *         attributes : { 'class' : 'Subscript' },\r
- *         overrides : 'sub'\r
- *     };\r
- */\r
-CKEDITOR.config.coreStyles_subscript = { element : 'sub' };\r
-\r
-/**\r
- * The style definition that applies the superscript style to the text.\r
- * @type Object\r
- * @default <code>{ element : 'sup' }</code>\r
- * @example\r
- * CKEDITOR.config.coreStyles_superscript =\r
- *     {\r
- *         element : 'span',\r
- *         attributes : { 'class' : 'Superscript' },\r
- *         overrides : 'sup'\r
- *     };\r
- */\r
-CKEDITOR.config.coreStyles_superscript = { element : 'sup' };\r