X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_samples%2Fsample.js;h=f7c023c0316b3bd5c8b262ec3cc8e657bc8c6c01;hp=7c134527b6dc87a85a6bb9cb5888cbd2e5c86444;hb=941b0a9ba4e673e292510d80a5a86806994b8ea6;hpb=7cd80714081a8ffdf4a1a8d2c72f120ed5ef3d6d diff --git a/_samples/sample.js b/_samples/sample.js index 7c13452..f7c023c 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-2010, 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()