X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fsourcearea%2Fplugin.js;h=ad3b4eac79633c35d83ab502edb8e43f9adb4350;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=a7331b65e3748ced8aaeef26f15288a063f23a3c;hpb=c6e377a02b54abc07129d72b632763c727476a15;p=ckeditor.git diff --git a/_source/plugins/sourcearea/plugin.js b/_source/plugins/sourcearea/plugin.js index a7331b6..ad3b4ea 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 */ @@ -34,7 +34,9 @@ CKEDITOR.plugins.add( 'sourcearea', textarea.setAttributes( { dir : 'ltr', - tabIndex : -1 + 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' ); @@ -70,17 +72,6 @@ CKEDITOR.plugins.add( 'sourcearea', win.on( 'resize', onResize ); setTimeout( onResize, 0 ); } - else - { - // By some yet unknown reason, we must stop the - // mousedown propagation for the textarea, - // otherwise it's not possible to place the caret - // inside of it (non IE). - textarea.on( 'mousedown', function( evt ) - { - evt.data.stopPropagation(); - } ); - } // Reset the holder element and append the //