textarea.setAttributes(\r
{\r
dir : 'ltr',\r
- tabIndex : -1\r
+ tabIndex : CKEDITOR.env.webkit ? -1 : editor.tabIndex,\r
+ 'role' : 'textbox',\r
+ 'aria-label' : editor.lang.editorTitle.replace( '%1', editor.name )\r
});\r
textarea.addClass( 'cke_source' );\r
textarea.addClass( 'cke_enable_context_menu' );\r
win.on( 'resize', onResize );\r
setTimeout( onResize, 0 );\r
}\r
- else\r
+ // As we prevent click to put focus on editor container,\r
+ // while 'mousedown' inside <textarea> is also captured,\r
+ // but we must stop the even propagation, otherwise\r
+ // it's not possible to place the caret inside of it (non IE and IE9).\r
+ if ( document.addEventListener )\r
{\r
- // By some yet unknown reason, we must stop the\r
- // mousedown propagation for the textarea,\r
- // otherwise it's not possible to place the caret\r
- // inside of it (non IE).\r
textarea.on( 'mousedown', function( evt )\r
{\r
evt.data.stopPropagation();\r
holderElement.append( textarea );\r
textarea.setStyles( styles );\r
\r
+ editor.fire( 'ariaWidget', textarea );\r
+\r
textarea.on( 'blur', function()\r
{\r
editor.focusManager.blur();\r
\r
unload : function( holderElement )\r
{\r
+ textarea.clearCustomData();\r
editor.textarea = textarea = null;\r
\r
if ( onResize )\r
source :\r
{\r
modes : { wysiwyg:1, source:1 },\r
+ editorFocus : false,\r
\r
exec : function( editor )\r
{\r