Ver Fonte

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

Signed-off-by: emanuele <[email protected]>
emanuele há 12 anos atrás
pai
commit
ed92cc3f1f
1 ficheiros alterados com 2 adições e 2 exclusões
  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");