X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fsample.js;h=d80646edcace2f1259dd8cc7251d7adde25e83a5;hb=6e682412d5cc0dfaedb376482e585bf2989c6863;hp=7c134527b6dc87a85a6bb9cb5888cbd2e5c86444;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_samples/sample.js b/_samples/sample.js index 7c13452..d80646e 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-2012, 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()