X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fsourcearea%2Fplugin.js;h=91430fe4724a8017c7d73a0482aa04a948e098c6;hb=2f22c0c38f17e75be5541089076885442aaa2377;hp=fb3f8a47aedf86ae7ffb0efe8f8d7b2083d90dd3;hpb=614511639979907ceb0da3614122a4d8eb963ad4;p=ckeditor.git diff --git a/_source/plugins/sourcearea/plugin.js b/_source/plugins/sourcearea/plugin.js index fb3f8a4..91430fe 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-2012, 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