JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1
[ckeditor.git] / _samples / sample.js
index 7c13452..f7c023c 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
@@ -7,13 +7,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 // It is just a helper file that displays a red message about browser compatibility\r
 // at the top of the samples (if incompatible browser is detected).\r
 \r
-// Firebug has been presented some bugs with console. It must be "initialized"\r
-// before the page load to work.\r
-// FIXME: Remove the following in the future, if Firebug gets fixed.\r
-if ( typeof console != 'undefined' )\r
-       console.log();\r
-\r
-\r
 if ( window.CKEDITOR )\r
 {\r
        (function()\r
@@ -51,7 +44,8 @@ if ( window.CKEDITOR )
 \r
                        html += '</p><p>With non compatible browsers, you should still be able to see and edit the contents (HTML) in a plain text field.</p>';\r
 \r
-                       document.getElementById( 'alerts' ).innerHTML = html;\r
+                       var alertsEl = document.getElementById( 'alerts' );\r
+                       alertsEl && ( alertsEl.innerHTML = html );\r
                };\r
 \r
                var onload = function()\r