JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1.1
[ckeditor.git] / _source / plugins / smiley / dialogs / smiley.js
index 5127be2..3fe408c 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -44,6 +44,7 @@ CKEDITOR.dialog.add( 'smiley', function( editor )
                editor.insertElement( img );\r
 \r
                dialog.hide();\r
+               evt.data.preventDefault();\r
        };\r
 \r
        var onKeydown = CKEDITOR.tools.addFunction( function( ev, element )\r