Index: lams_central/web/ckeditor/plugins/paint/CK Paint.swf
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/ckeditor/plugins/paint/CK Paint.swf,v
diff -u
Binary files differ
Index: lams_central/web/ckeditor/plugins/paint/content.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/ckeditor/plugins/paint/content.jsp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/ckeditor/plugins/paint/content.jsp 7 Nov 2010 17:14:28 -0000 1.1
@@ -0,0 +1,64 @@
+<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
+<%@ page import="org.lamsfoundation.lams.util.Configuration" %>
+<%@ page import="org.lamsfoundation.lams.util.ConfigurationKeys" %>
+<%@ taglib uri="tags-fmt" prefix="fmt" %>
+<%@ taglib uri="tags-lams" prefix="lams" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: lams_central/web/ckeditor/plugins/paint/icon.png
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/ckeditor/plugins/paint/icon.png,v
diff -u
Binary files differ
Index: lams_central/web/ckeditor/plugins/paint/plugin.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/ckeditor/plugins/paint/plugin.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/ckeditor/plugins/paint/plugin.js 7 Nov 2010 17:14:28 -0000 1.1
@@ -0,0 +1,43 @@
+CKEDITOR.plugins.add('paint',
+ {
+ requires : ['iframedialog'],
+ lang : [ 'en' ],
+ init : function(editor) {
+ var pluginPath = CKEDITOR.plugins.getPath('paint');
+
+ editor.ui.addButton(
+ 'Paint_Button',
+ {
+ label : 'Paint canvas',
+ command : 'Paint canvas',
+ icon : pluginPath + 'icon.png',
+ title : editor.lang.Paint.Button
+ }
+ );
+
+ editor.addCommand('Paint canvas', {exec:showDialogPlugin});
+ editor.on('dblclick',onImageDoubleClick);
+
+ CKEDITOR.dialog.addIframe(
+ editor.lang.Paint.DialogName,
+ editor.lang.Paint.DialogTitle,
+ pluginPath + 'content.jsp',
+ 852,
+ 610,
+ function(){
+ }
+ );
+ }
+ }
+ );
+
+function showDialogPlugin(e){
+ e.openDialog(editor.lang.Paint.DialogName);
+}
+
+function onImageDoubleClick (ev){
+ if(ev.scopeObj.getAttribute('class') == "ckeditor_paint"){
+ ev.scopeObj.paintStartingImage = ev.scopeObj.src;
+ ev.scopeObj.execCommand('Paint canvas');
+ }
+}
\ No newline at end of file
Index: lams_central/web/ckeditor/plugins/paint/swfobject.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/ckeditor/plugins/paint/Attic/swfobject.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/ckeditor/plugins/paint/swfobject.js 7 Nov 2010 17:14:28 -0000 1.1
@@ -0,0 +1,5 @@
+/* SWFObject v2.1
+ Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
+ This software is released under the MIT License
+*/
+var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("