diff options
| author | lsces <lester@lsces.co.uk> | 2013-07-15 14:22:23 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2013-07-15 14:22:23 +0100 |
| commit | 6d4c4f12d15ae68d912972921997a8c5180c9aea (patch) | |
| tree | 104274447272d09617c483cf6b0ee79559c9fe6f /_source/plugins/showblocks | |
| parent | de6d09676a9527919813a4474cc28af554a35fe1 (diff) | |
| download | ckeditor-6d4c4f12d15ae68d912972921997a8c5180c9aea.tar.gz ckeditor-6d4c4f12d15ae68d912972921997a8c5180c9aea.tar.bz2 ckeditor-6d4c4f12d15ae68d912972921997a8c5180c9aea.zip | |
Upgrade to CKEditor V4
Directory structure changed so many files removed and replace in a new location
This batch is the delete and add
Diffstat (limited to '_source/plugins/showblocks')
| -rw-r--r-- | _source/plugins/showblocks/images/block_address.png | bin | 171 -> 0 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_blockquote.png | bin | 181 -> 0 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_div.png | bin | 136 -> 0 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_h1.png | bin | 127 -> 0 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_h2.png | bin | 134 -> 0 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_h3.png | bin | 131 -> 0 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_h4.png | bin | 133 -> 0 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_h5.png | bin | 133 -> 0 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_h6.png | bin | 129 -> 0 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_p.png | bin | 119 -> 0 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/images/block_pre.png | bin | 136 -> 0 bytes | |||
| -rw-r--r-- | _source/plugins/showblocks/plugin.js | 160 |
12 files changed, 0 insertions, 160 deletions
diff --git a/_source/plugins/showblocks/images/block_address.png b/_source/plugins/showblocks/images/block_address.png Binary files differdeleted file mode 100644 index 1ee67aa..0000000 --- a/_source/plugins/showblocks/images/block_address.png +++ /dev/null diff --git a/_source/plugins/showblocks/images/block_blockquote.png b/_source/plugins/showblocks/images/block_blockquote.png Binary files differdeleted file mode 100644 index cae3aec..0000000 --- a/_source/plugins/showblocks/images/block_blockquote.png +++ /dev/null diff --git a/_source/plugins/showblocks/images/block_div.png b/_source/plugins/showblocks/images/block_div.png Binary files differdeleted file mode 100644 index c71f397..0000000 --- a/_source/plugins/showblocks/images/block_div.png +++ /dev/null diff --git a/_source/plugins/showblocks/images/block_h1.png b/_source/plugins/showblocks/images/block_h1.png Binary files differdeleted file mode 100644 index 3a64347..0000000 --- a/_source/plugins/showblocks/images/block_h1.png +++ /dev/null diff --git a/_source/plugins/showblocks/images/block_h2.png b/_source/plugins/showblocks/images/block_h2.png Binary files differdeleted file mode 100644 index 8062ebe..0000000 --- a/_source/plugins/showblocks/images/block_h2.png +++ /dev/null diff --git a/_source/plugins/showblocks/images/block_h3.png b/_source/plugins/showblocks/images/block_h3.png Binary files differdeleted file mode 100644 index 5b6a403..0000000 --- a/_source/plugins/showblocks/images/block_h3.png +++ /dev/null diff --git a/_source/plugins/showblocks/images/block_h4.png b/_source/plugins/showblocks/images/block_h4.png Binary files differdeleted file mode 100644 index 6c7f795..0000000 --- a/_source/plugins/showblocks/images/block_h4.png +++ /dev/null diff --git a/_source/plugins/showblocks/images/block_h5.png b/_source/plugins/showblocks/images/block_h5.png Binary files differdeleted file mode 100644 index e153de0..0000000 --- a/_source/plugins/showblocks/images/block_h5.png +++ /dev/null diff --git a/_source/plugins/showblocks/images/block_h6.png b/_source/plugins/showblocks/images/block_h6.png Binary files differdeleted file mode 100644 index c8d993a..0000000 --- a/_source/plugins/showblocks/images/block_h6.png +++ /dev/null diff --git a/_source/plugins/showblocks/images/block_p.png b/_source/plugins/showblocks/images/block_p.png Binary files differdeleted file mode 100644 index 4e6035d..0000000 --- a/_source/plugins/showblocks/images/block_p.png +++ /dev/null diff --git a/_source/plugins/showblocks/images/block_pre.png b/_source/plugins/showblocks/images/block_pre.png Binary files differdeleted file mode 100644 index d11a0ff..0000000 --- a/_source/plugins/showblocks/images/block_pre.png +++ /dev/null diff --git a/_source/plugins/showblocks/plugin.js b/_source/plugins/showblocks/plugin.js deleted file mode 100644 index de95124..0000000 --- a/_source/plugins/showblocks/plugin.js +++ /dev/null @@ -1,160 +0,0 @@ -/*
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
-*/
-
-/**
- * @fileOverview The "showblocks" plugin. Enable it will make all block level
- * elements being decorated with a border and the element name
- * displayed on the left-right corner.
- */
-
-(function()
-{
- var cssTemplate = '.%2 p,'+
- '.%2 div,'+
- '.%2 pre,'+
- '.%2 address,'+
- '.%2 blockquote,'+
- '.%2 h1,'+
- '.%2 h2,'+
- '.%2 h3,'+
- '.%2 h4,'+
- '.%2 h5,'+
- '.%2 h6'+
- '{'+
- 'background-repeat: no-repeat;'+
- 'background-position: top %3;'+
- 'border: 1px dotted gray;'+
- 'padding-top: 8px;'+
- 'padding-%3: 8px;'+
- '}'+
-
- '.%2 p'+
- '{'+
- '%1p.png);'+
- '}'+
-
- '.%2 div'+
- '{'+
- '%1div.png);'+
- '}'+
-
- '.%2 pre'+
- '{'+
- '%1pre.png);'+
- '}'+
-
- '.%2 address'+
- '{'+
- '%1address.png);'+
- '}'+
-
- '.%2 blockquote'+
- '{'+
- '%1blockquote.png);'+
- '}'+
-
- '.%2 h1'+
- '{'+
- '%1h1.png);'+
- '}'+
-
- '.%2 h2'+
- '{'+
- '%1h2.png);'+
- '}'+
-
- '.%2 h3'+
- '{'+
- '%1h3.png);'+
- '}'+
-
- '.%2 h4'+
- '{'+
- '%1h4.png);'+
- '}'+
-
- '.%2 h5'+
- '{'+
- '%1h5.png);'+
- '}'+
-
- '.%2 h6'+
- '{'+
- '%1h6.png);'+
- '}';
-
- var cssTemplateRegex = /%1/g, cssClassRegex = /%2/g, backgroundPositionRegex = /%3/g;
-
- var commandDefinition =
- {
- readOnly : 1,
- preserveState : true,
- editorFocus : false,
-
- exec : function ( editor )
- {
- this.toggleState();
- this.refresh( editor );
- },
-
- refresh : function( editor )
- {
- if ( editor.document )
- {
- var funcName = ( this.state == CKEDITOR.TRISTATE_ON ) ? 'addClass' : 'removeClass';
- editor.document.getBody()[ funcName ]( 'cke_show_blocks' );
- }
- }
- };
-
- CKEDITOR.plugins.add( 'showblocks',
- {
- requires : [ 'wysiwygarea' ],
-
- init : function( editor )
- {
- var command = editor.addCommand( 'showblocks', commandDefinition );
- command.canUndo = false;
-
- if ( editor.config.startupOutlineBlocks )
- command.setState( CKEDITOR.TRISTATE_ON );
-
- editor.addCss( cssTemplate
- .replace( cssTemplateRegex, 'background-image: url(' + CKEDITOR.getUrl( this.path ) + 'images/block_' )
- .replace( cssClassRegex, 'cke_show_blocks ' )
- .replace( backgroundPositionRegex, editor.lang.dir == 'rtl' ? 'right' : 'left' ) );
-
- editor.ui.addButton( 'ShowBlocks',
- {
- label : editor.lang.showBlocks,
- command : 'showblocks'
- });
-
- // Refresh the command on setData.
- editor.on( 'mode', function()
- {
- if ( command.state != CKEDITOR.TRISTATE_DISABLED )
- command.refresh( editor );
- });
-
- // Refresh the command on setData.
- editor.on( 'contentDom', function()
- {
- if ( command.state != CKEDITOR.TRISTATE_DISABLED )
- command.refresh( editor );
- });
- }
- });
-} )();
-
-/**
- * Whether to automaticaly enable the "show block" command when the editor
- * loads. (StartupShowBlocks in FCKeditor)
- * @name CKEDITOR.config.startupOutlineBlocks
- * @type Boolean
- * @default false
- * @example
- * config.startupOutlineBlocks = true;
- */
|
