Index: lams_central/web/ckeditor/plugins/paint/CK Paint.swf
===================================================================
diff -u
Binary files differ
Index: lams_central/web/ckeditor/plugins/paint/content.jsp
===================================================================
diff -u
--- lams_central/web/ckeditor/plugins/paint/content.jsp (revision 0)
+++ lams_central/web/ckeditor/plugins/paint/content.jsp (revision 656d1f554ccd1f49df2c4831639c7584d8f49bdb)
@@ -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
===================================================================
diff -u
Binary files differ
Index: lams_central/web/ckeditor/plugins/paint/lang/en.js
===================================================================
diff -u
--- lams_central/web/ckeditor/plugins/paint/lang/en.js (revision 0)
+++ lams_central/web/ckeditor/plugins/paint/lang/en.js (revision 656d1f554ccd1f49df2c4831639c7584d8f49bdb)
@@ -0,0 +1,50 @@
+CKEDITOR.plugins.setLang( 'paint', 'en',
+ {
+ Paint :
+
+ {
+ DialogTitle : 'Create your own painting',
+
+ DialogName : 'Paint dialog window',
+
+ Button : 'Paint images',
+
+ Flash : {
+
+ reset : "Reset",
+
+ reset_question : "Really clear the whole screen?",
+
+ yes : "Yes",
+
+ no : "No",
+
+ done : "Done",
+
+ lines : "Lines",
+
+ shapes : "Shapes",
+
+ paint : "Paint",
+
+ text : "Text",
+
+ line_options : "Line thickness and color",
+
+ fill_options : "Fill color",
+
+ perfect_shape_options : "Number of sides",
+
+ brush_options_shape : "Brush shape",
+
+ brush_options_size : "Brush size",
+
+ words_options : "Text size and color",
+
+ fill : "Use fill",
+
+ border : "Draw border"
+ }
+ }
+ }
+ );
\ No newline at end of file
Index: lams_central/web/ckeditor/plugins/paint/plugin.js
===================================================================
diff -u
--- lams_central/web/ckeditor/plugins/paint/plugin.js (revision 0)
+++ lams_central/web/ckeditor/plugins/paint/plugin.js (revision 656d1f554ccd1f49df2c4831639c7584d8f49bdb)
@@ -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
===================================================================
diff -u
--- lams_central/web/ckeditor/plugins/paint/swfobject.js (revision 0)
+++ lams_central/web/ckeditor/plugins/paint/swfobject.js (revision 656d1f554ccd1f49df2c4831639c7584d8f49bdb)
@@ -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("