aboutsummaryrefslogtreecommitdiffstats
path: root/view/msg-header.tpl
diff options
context:
space:
mode:
authorTobias Hößl <tobias@hoessl.eu>2012-03-16 17:45:07 +0000
committerTobias Hößl <tobias@hoessl.eu>2012-03-16 17:45:07 +0000
commit75823c23539fd009a6575dc125258afa7ce2bbc8 (patch)
treee60edf7a0420958f50c90ac37b2b08f7a8c57374 /view/msg-header.tpl
parent47e1b8d0c07d79c33f8b2de52145aa751d4b955a (diff)
downloadvolse-hubzilla-75823c23539fd009a6575dc125258afa7ce2bbc8.tar.gz
volse-hubzilla-75823c23539fd009a6575dc125258afa7ce2bbc8.tar.bz2
volse-hubzilla-75823c23539fd009a6575dc125258afa7ce2bbc8.zip
Use tabindex to enable easy navigation in the dialog to write private mails; Recipient -> Subject -> Text field (tabindex has to be set to the IFRAME element after TinyMCE started) -> Send button
Diffstat (limited to 'view/msg-header.tpl')
-rwxr-xr-xview/msg-header.tpl9
1 files changed, 8 insertions, 1 deletions
diff --git a/view/msg-header.tpl b/view/msg-header.tpl
index b5c78345a..1f8650bfe 100755
--- a/view/msg-header.tpl
+++ b/view/msg-header.tpl
@@ -30,8 +30,15 @@ if(plaintext != 'none') {
setup : function(ed) {
ed.onInit.add(function(ed) {
ed.pasteAsPlainText = true;
+ var editorId = ed.editorId;
+ var textarea = $('#'+editorId);
+ console.log(textarea);
+ if (typeof(textarea.attr('tabindex')) != "undefined") {
+ $('#'+editorId+'_ifr').attr('tabindex', textarea.attr('tabindex'));
+ textarea.attr('tabindex', null);
+ }
});
- }
+ },
});
}