X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fsourcearea%2Fplugin.js;h=354c3b25689d5add35c95cd25d28ba807b490e31;hb=e73319a12b56100b29ef456fd74114fe5519e01c;hp=234bbf019c255630d1da355feec4ab8d27a3815a;hpb=039a051ccf3901311661022a30afd60fc38130c9;p=ckeditor.git diff --git a/_source/plugins/sourcearea/plugin.js b/_source/plugins/sourcearea/plugin.js index 234bbf0..354c3b2 100644 --- a/_source/plugins/sourcearea/plugin.js +++ b/_source/plugins/sourcearea/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, 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 */ @@ -41,6 +41,8 @@ CKEDITOR.plugins.add( 'sourcearea', textarea.addClass( 'cke_source' ); textarea.addClass( 'cke_enable_context_menu' ); + editor.readOnly && textarea.setAttribute( 'readOnly', 'readonly' ); + var styles = { // IE7 has overflow the