From 8630f2bc4d63b3320f5469d9532a1cba1dddb7a3 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Tue, 24 Nov 2009 23:57:24 +0000 Subject: ckeditor 3.0.1 'raw' - needs reordering a little, but samples currently functional --- plugins/listblock/plugin.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 plugins/listblock/plugin.js (limited to 'plugins/listblock') diff --git a/plugins/listblock/plugin.js b/plugins/listblock/plugin.js new file mode 100644 index 0000000..39325e4 --- /dev/null +++ b/plugins/listblock/plugin.js @@ -0,0 +1,7 @@ +/* +Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +CKEDITOR.plugins.add('listblock',{requires:['panel'],onLoad:function(){CKEDITOR.ui.panel.prototype.addListBlock=function(a,b){return this.addBlock(a,new CKEDITOR.ui.listBlock(this.getHolderElement(),b));};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(a,b){var d=this;d.base(a);d.multiSelect=!!b;var c=d.keys;c[40]='next';c[9]='next';c[38]='prev';c[CKEDITOR.SHIFT+9]='prev';c[32]='click';d._.pendingHtml=[];d._.items={};d._.groups={};},_:{close:function(){if(this._.started){this._.pendingHtml.push('');delete this._.started;}},getClick:function(){if(!this._.click)this._.click=CKEDITOR.tools.addFunction(function(a){var c=this;var b=true;if(c.multiSelect)b=c.toggle(a);else c.mark(a);if(c.onClick)c.onClick(a,b);},this);return this._.click;}},proto:{add:function(a,b,c){var f=this;var d=f._.pendingHtml,e='cke_'+CKEDITOR.tools.getNextNumber();if(!f._.started){d.push('