JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.3
[ckeditor.git] / _source / plugins / sourcearea / plugin.js
index 92ddce3..fb3f8a4 100644 (file)
@@ -34,7 +34,7 @@ CKEDITOR.plugins.add( 'sourcearea',
                                                        textarea.setAttributes(\r
                                                                {\r
                                                                        dir : 'ltr',\r
-                                                                       tabIndex : editor.tabIndex,\r
+                                                                       tabIndex : CKEDITOR.env.webkit ? -1 : editor.tabIndex,\r
                                                                        'role' : 'textbox',\r
                                                                        'aria-label' : editor.lang.editorTitle.replace( '%1', editor.name )\r
                                                                });\r
@@ -72,17 +72,6 @@ CKEDITOR.plugins.add( 'sourcearea',
                                                                win.on( 'resize', onResize );\r
                                                                setTimeout( onResize, 0 );\r
                                                        }\r
-                                                       else\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
-                                                                       } );\r
-                                                       }\r
 \r
                                                        // Reset the holder element and append the\r
                                                        // <textarea> to it.\r
@@ -138,6 +127,7 @@ CKEDITOR.plugins.add( 'sourcearea',
 \r
                                                unload : function( holderElement )\r
                                                {\r
+                                                       textarea.clearCustomData();\r
                                                        editor.textarea = textarea = null;\r
 \r
                                                        if ( onResize )\r
@@ -190,6 +180,7 @@ CKEDITOR.plugins.sourcearea =
                source :\r
                {\r
                        modes : { wysiwyg:1, source:1 },\r
+                       editorFocus : false,\r
 \r
                        exec : function( editor )\r
                        {\r