summaryrefslogtreecommitdiff
path: root/plugins/showblocks
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/showblocks')
-rw-r--r--plugins/showblocks/images/block_address.pngbin0 -> 288 bytes
-rw-r--r--plugins/showblocks/images/block_blockquote.pngbin0 -> 293 bytes
-rw-r--r--plugins/showblocks/images/block_div.pngbin0 -> 229 bytes
-rw-r--r--plugins/showblocks/images/block_h1.pngbin0 -> 218 bytes
-rw-r--r--plugins/showblocks/images/block_h2.pngbin0 -> 220 bytes
-rw-r--r--plugins/showblocks/images/block_h3.pngbin0 -> 219 bytes
-rw-r--r--plugins/showblocks/images/block_h4.pngbin0 -> 229 bytes
-rw-r--r--plugins/showblocks/images/block_h5.pngbin0 -> 236 bytes
-rw-r--r--plugins/showblocks/images/block_h6.pngbin0 -> 216 bytes
-rw-r--r--plugins/showblocks/images/block_p.pngbin0 -> 205 bytes
-rw-r--r--plugins/showblocks/images/block_pre.pngbin0 -> 223 bytes
-rw-r--r--plugins/showblocks/plugin.js6
12 files changed, 6 insertions, 0 deletions
diff --git a/plugins/showblocks/images/block_address.png b/plugins/showblocks/images/block_address.png
new file mode 100644
index 0000000..8bbae6e
--- /dev/null
+++ b/plugins/showblocks/images/block_address.png
Binary files differ
diff --git a/plugins/showblocks/images/block_blockquote.png b/plugins/showblocks/images/block_blockquote.png
new file mode 100644
index 0000000..cf065ba
--- /dev/null
+++ b/plugins/showblocks/images/block_blockquote.png
Binary files differ
diff --git a/plugins/showblocks/images/block_div.png b/plugins/showblocks/images/block_div.png
new file mode 100644
index 0000000..a2806b1
--- /dev/null
+++ b/plugins/showblocks/images/block_div.png
Binary files differ
diff --git a/plugins/showblocks/images/block_h1.png b/plugins/showblocks/images/block_h1.png
new file mode 100644
index 0000000..d43fbdb
--- /dev/null
+++ b/plugins/showblocks/images/block_h1.png
Binary files differ
diff --git a/plugins/showblocks/images/block_h2.png b/plugins/showblocks/images/block_h2.png
new file mode 100644
index 0000000..27b5475
--- /dev/null
+++ b/plugins/showblocks/images/block_h2.png
Binary files differ
diff --git a/plugins/showblocks/images/block_h3.png b/plugins/showblocks/images/block_h3.png
new file mode 100644
index 0000000..3c3034f
--- /dev/null
+++ b/plugins/showblocks/images/block_h3.png
Binary files differ
diff --git a/plugins/showblocks/images/block_h4.png b/plugins/showblocks/images/block_h4.png
new file mode 100644
index 0000000..ab3f64d
--- /dev/null
+++ b/plugins/showblocks/images/block_h4.png
Binary files differ
diff --git a/plugins/showblocks/images/block_h5.png b/plugins/showblocks/images/block_h5.png
new file mode 100644
index 0000000..93477d0
--- /dev/null
+++ b/plugins/showblocks/images/block_h5.png
Binary files differ
diff --git a/plugins/showblocks/images/block_h6.png b/plugins/showblocks/images/block_h6.png
new file mode 100644
index 0000000..11ea1c2
--- /dev/null
+++ b/plugins/showblocks/images/block_h6.png
Binary files differ
diff --git a/plugins/showblocks/images/block_p.png b/plugins/showblocks/images/block_p.png
new file mode 100644
index 0000000..d055c51
--- /dev/null
+++ b/plugins/showblocks/images/block_p.png
Binary files differ
diff --git a/plugins/showblocks/images/block_pre.png b/plugins/showblocks/images/block_pre.png
new file mode 100644
index 0000000..be8ad26
--- /dev/null
+++ b/plugins/showblocks/images/block_pre.png
Binary files differ
diff --git a/plugins/showblocks/plugin.js b/plugins/showblocks/plugin.js
new file mode 100644
index 0000000..8b69d75
--- /dev/null
+++ b/plugins/showblocks/plugin.js
@@ -0,0 +1,6 @@
+/*
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
+For licensing, see LICENSE.html or http://ckeditor.com/license
+*/
+
+(function(){var a='.%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;border: 1px dotted gray;padding-top: 8px;padding-left: 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);}',b=/%1/g,c=/%2/g,d={preserveState:true,editorFocus:false,exec:function(e){this.toggleState();this.refresh(e);},refresh:function(e){var f=this.state==CKEDITOR.TRISTATE_ON?'addClass':'removeClass';e.document.getBody()[f]('cke_show_blocks');}};CKEDITOR.plugins.add('showblocks',{requires:['wysiwygarea'],init:function(e){var f=e.addCommand('showblocks',d);f.canUndo=false;if(e.config.startupOutlineBlocks)f.setState(CKEDITOR.TRISTATE_ON);e.addCss(a.replace(b,'background-image: url('+CKEDITOR.getUrl(this.path)+'images/block_').replace(c,'cke_show_blocks '));e.ui.addButton('ShowBlocks',{label:e.lang.showBlocks,command:'showblocks'});e.on('mode',function(){if(f.state!=CKEDITOR.TRISTATE_DISABLED)f.refresh(e);});e.on('contentDom',function(){if(f.state!=CKEDITOR.TRISTATE_DISABLED)f.refresh(e);});}});})();CKEDITOR.config.startupOutlineBlocks=false;