Index: lams_central/web/fckeditor/editor/plugins/paint/fckplugin.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/fckeditor/editor/plugins/paint/Attic/fckplugin.js,v
diff -u -r1.2.2.2 -r1.2.2.3
--- lams_central/web/fckeditor/editor/plugins/paint/fckplugin.js 30 Apr 2009 00:12:33 -0000 1.2.2.2
+++ lams_central/web/fckeditor/editor/plugins/paint/fckplugin.js 30 Apr 2009 02:55:07 -0000 1.2.2.3
@@ -7,13 +7,15 @@
var PaintCommand = new Object();
PaintCommand.Add=function(source) {
- FCK.InsertHtml('
');
+ FCK.InsertHtml('
');
FCK.Focus();
}
PaintCommand.startingImage = "";
PaintCommand.OnDoubleClick = function( image )
{
- PaintCommand.startingImage = image.src;
- FCKCommands.GetCommand('Paint canvas').Execute();
+ if(image.getAttribute('class') == "fckeditor_paint"){
+ PaintCommand.startingImage = image.src;
+ FCKCommands.GetCommand('Paint canvas').Execute();
+ }
}
FCK.RegisterDoubleClickHandler( PaintCommand.OnDoubleClick, 'IMG' ) ;
\ No newline at end of file