X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fsample.js;h=9e0b41100cd0e6cfee85ef3e8eaa347c58f63396;hb=refs%2Ftags%2Fv3.5.4;hp=7c134527b6dc87a85a6bb9cb5888cbd2e5c86444;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_samples/sample.js b/_samples/sample.js index 7c13452..9e0b411 100644 --- a/_samples/sample.js +++ b/_samples/sample.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -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 // at the top of the samples (if incompatible browser is detected). -// Firebug has been presented some bugs with console. It must be "initialized" -// before the page load to work. -// FIXME: Remove the following in the future, if Firebug gets fixed. -if ( typeof console != 'undefined' ) - console.log(); - - if ( window.CKEDITOR ) { (function() @@ -51,7 +44,8 @@ if ( window.CKEDITOR ) html += '

With non compatible browsers, you should still be able to see and edit the contents (HTML) in a plain text field.

'; - document.getElementById( 'alerts' ).innerHTML = html; + var alertsEl = document.getElementById( 'alerts' ); + alertsEl && ( alertsEl.innerHTML = html ); }; var onload = function()