瀏覽代碼

[SCEditor] Preserve the tabindex of the original textarea [issue #185]

Signed-off-by: emanuele <[email protected]>
emanuele 12 年之前
父節點
當前提交
ed92cc3f1f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Themes/default/scripts/jquery.sceditor.js

+ 2 - 2
Themes/default/scripts/jquery.sceditor.js

@@ -286,8 +286,8 @@
 		initEditor = function () {
 			var $doc, $body;
 
-			$textEditor	= $('<textarea></textarea>').hide();
-			$wysiwygEditor	= $('<iframe frameborder="0"></iframe>');
+			$textEditor	= $('<textarea></textarea>').attr('tabindex', $textarea.attr('tabindex')).hide();
+			$wysiwygEditor	= $('<iframe frameborder="0"></iframe>').attr('tabindex', $textarea.attr('tabindex'));
 
 			if(window.location.protocol === "https:")
 				$wysiwygEditor.attr("src", "javascript:false");