Index: /CKEditor/branches/versions/3.0.x/CHANGES.html
===================================================================
--- /CKEditor/branches/versions/3.0.x/CHANGES.html	(revision 4110)
+++ /CKEditor/branches/versions/3.0.x/CHANGES.html	(revision 4111)
@@ -235,4 +235,5 @@
 		<li><a href="http://dev.fckeditor.net/ticket/4186">#4186</a> : [FF] Fixed First open float panel cause host page scrollbar blinking.</li>
 		<li><a href="http://dev.fckeditor.net/ticket/4227">#4227</a> : Fixed destroy editor instance created on textarea which is not within form cause error.</li>
+		<li><a href="http://dev.fckeditor.net/ticket/4240">#4240</a> : Fixed editor name containing hyphen break editor completely.</li>
 	</ul>
 	<h3>
Index: /CKEditor/branches/versions/3.0.x/_source/plugins/wysiwygarea/plugin.js
===================================================================
--- /CKEditor/branches/versions/3.0.x/_source/plugins/wysiwygarea/plugin.js	(revision 4110)
+++ /CKEditor/branches/versions/3.0.x/_source/plugins/wysiwygarea/plugin.js	(revision 4111)
@@ -242,7 +242,7 @@
 								'document.open();' +
 								( CKEDITOR.env.ie && isCustomDomain ? 'document.domain="' + document.domain + '";' : '' ) +
-								'document.write( window.parent._cke_htmlToLoad_' + editor.name + ' );' +
+								'document.write( window.parent[ "_cke_htmlToLoad_' + editor.name + '" ] );' +
 								'document.close();' +
-								'window.parent._cke_htmlToLoad_' + editor.name + ' = null;' +
+								'window.parent[ "_cke_htmlToLoad_' + editor.name + '" ] = null;' +
 								'}'
 								+ ( CKEDITOR.env.gecko ? ', 0 )' : ')()' )
