Index: /CKEditor/trunk/_source/plugins/enterkey/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/enterkey/plugin.js	(revision 3257)
+++ /CKEditor/trunk/_source/plugins/enterkey/plugin.js	(revision 3258)
@@ -32,4 +32,8 @@
 	function enter( editor, mode )
 	{
+		// Only effective within document.
+		if ( editor.mode != 'wysiwyg' )
+			return;
+			
 		if ( !mode )
 			mode = editor.config.enterMode;
