X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fsourcearea%2Fplugin.js;h=28eda1e62956b81ff993044afc7f21675b468c0c;hb=3fe9cac293e090ea459a3ee10d78cbe9e1dd0e03;hp=92ddce3d41a6b3b0f8275f25a41bc76f88ddb2be;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/plugins/sourcearea/plugin.js b/_source/plugins/sourcearea/plugin.js index 92ddce3..28eda1e 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-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -34,13 +34,15 @@ CKEDITOR.plugins.add( 'sourcearea', textarea.setAttributes( { dir : 'ltr', - tabIndex : editor.tabIndex, + tabIndex : CKEDITOR.env.webkit ? -1 : editor.tabIndex, 'role' : 'textbox', 'aria-label' : editor.lang.editorTitle.replace( '%1', editor.name ) }); textarea.addClass( 'cke_source' ); textarea.addClass( 'cke_enable_context_menu' ); + editor.readOnly && textarea.setAttribute( 'readOnly', 'readonly' ); + var styles = { // IE7 has overflow the