Переглянути джерело

[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");