@@ -35,7 +35,7 @@ function template_control_richedit($editor_id, $smileyContainer = null, $bbcCont
3535 $ editor_context ['sce_options ' ]['toolbar ' ] = '' ;
3636
3737 echo '
38- <textarea class="editor" name=" ' , $ editor_id , '" id=" ' , $ editor_id , '" cols="600" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex=" ' , Utils:: $ context [ ' tabindex ' ]++, ' " style="width: ' , $ editor_context ['width ' ], '; height: ' , $ editor_context ['height ' ], '; ' , isset (Utils::$ context ['post_error ' ]['no_message ' ]) || isset (Utils::$ context ['post_error ' ]['long_message ' ]) ? 'border: 1px solid red; ' : '' , '" ' , !empty (Utils::$ context ['editor ' ]['required ' ]) ? ' required ' : '' , '> ' , $ editor_context ['value ' ], '</textarea>
38+ <textarea class="editor" name=" ' , $ editor_id , '" id=" ' , $ editor_id , '" cols="600" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" style="width: ' , $ editor_context ['width ' ], '; height: ' , $ editor_context ['height ' ], '; ' , isset (Utils::$ context ['post_error ' ]['no_message ' ]) || isset (Utils::$ context ['post_error ' ]['long_message ' ]) ? 'border: 1px solid red; ' : '' , '" ' , !empty (Utils::$ context ['editor ' ]['required ' ]) ? ' required ' : '' , '> ' , $ editor_context ['value ' ], '</textarea>
3939 <div id=" ' , $ editor_id , '_resizer" class="richedit_resize"></div>
4040 <input type="hidden" name=" ' , $ editor_id , '_mode" id=" ' , $ editor_id , '_mode" value="0">
4141 <script>
@@ -90,23 +90,7 @@ function template_control_richedit_buttons($editor_id)
9090 </span>
9191 <span class="post_button_container"> ' ;
9292
93- $ tempTab = Utils::$ context ['tabindex ' ];
94-
95- if (!empty (Utils::$ context ['drafts_save ' ]))
96- $ tempTab ++;
97- elseif ($ editor_context ['preview_type ' ])
98- $ tempTab ++;
99- elseif (Utils::$ context ['show_spellchecking ' ])
100- $ tempTab ++;
101-
102- $ tempTab ++;
103- Utils::$ context ['tabindex ' ] = $ tempTab ;
104-
10593 foreach (Utils::$ context ['richedit_buttons ' ] as $ name => $ button ) {
106- if ($ name == 'spell_check ' ) {
107- $ button ['onclick ' ] = 'oEditorHandle_ ' . $ editor_id . '.spellCheckStart(); ' ;
108- }
109-
11094 if ($ name == 'preview ' ) {
11195 $ button ['value ' ] = isset ($ editor_context ['labels ' ]['preview_button ' ]) ? $ editor_context ['labels ' ]['preview_button ' ] : $ button ['value ' ];
11296 $ button ['onclick ' ] = $ editor_context ['preview_type ' ] == Editor::PREVIEW_XML ? '' : 'return submitThisOnce(this); ' ;
@@ -115,12 +99,12 @@ function template_control_richedit_buttons($editor_id)
11599
116100 if ($ button ['show ' ]) {
117101 echo '
118- <input type=" ' , $ button ['type ' ], '" ' , $ button ['type ' ] == 'hidden ' ? ' id=" ' . $ name . '" ' : '' , ' name=" ' , $ name , '" value=" ' , $ button ['value ' ], '" ' , $ button [ ' type ' ] != ' hidden ' ? ' tabindex=" ' . -- $ tempTab . ' " ' : '' , !empty ($ button ['onclick ' ]) ? ' onclick=" ' . $ button ['onclick ' ] . '" ' : '' , !empty ($ button ['accessKey ' ]) ? ' accesskey=" ' . $ button ['accessKey ' ] . '" ' : '' , $ button ['type ' ] != 'hidden ' ? ' class="button" ' : '' , '> ' ;
102+ <input type=" ' , $ button ['type ' ], '" ' , $ button ['type ' ] == 'hidden ' ? ' id=" ' . $ name . '" ' : '' , ' name=" ' , $ name , '" value=" ' , $ button ['value ' ], '" ' , !empty ($ button ['onclick ' ]) ? ' onclick=" ' . $ button ['onclick ' ] . '" ' : '' , !empty ($ button ['accessKey ' ]) ? ' accesskey=" ' . $ button ['accessKey ' ] . '" ' : '' , $ button ['type ' ] != 'hidden ' ? ' class="button" ' : '' , '> ' ;
119103 }
120104 }
121105
122106 echo '
123- <input type="submit" value=" ' , isset ($ editor_context ['labels ' ]['post_button ' ]) ? $ editor_context ['labels ' ]['post_button ' ] : Lang::getTxt ('post ' , file: 'General ' ), '" name="post" tabindex=" ' , -- $ tempTab , ' " onclick="return submitThisOnce(this);" accesskey="s" class="button">
107+ <input type="submit" value=" ' , isset ($ editor_context ['labels ' ]['post_button ' ]) ? $ editor_context ['labels ' ]['post_button ' ] : Lang::getTxt ('post ' , file: 'General ' ), '" name="post" onclick="return submitThisOnce(this);" accesskey="s" class="button">
124108 </span> ' ;
125109
126110 // Start an instance of the auto saver if it's enabled
@@ -206,7 +190,7 @@ function template_control_verification($verify_id, $display_type = 'all', $reset
206190 <div class="smalltext" style="margin: 4px 0 8px 0;">
207191 <a href=" ' , $ verify_context ->image_href , ';sound" id="visual_verification_ ' , $ verify_id , '_sound" rel="nofollow"> ' , Lang::getTxt ('visual_verification_sound ' , file: 'General ' ), '</a> / <a href="#visual_verification_ ' , $ verify_id , '_refresh" id="visual_verification_ ' , $ verify_id , '_refresh"> ' , Lang::getTxt ('visual_verification_request_new ' , file: 'General ' ), '</a> ' , $ display_type != 'quick_reply ' ? '<br> ' : '' , '<br>
208192 ' , Lang::getTxt ('visual_verification_description ' , file: 'General ' ), $ display_type != 'quick_reply ' ? '<br> ' : '' , '
209- <input type="text" name=" ' , $ verify_id , '_vv[code]" value="" size="30" tabindex=" ' , Utils:: $ context [ ' tabindex ' ]++, ' " autocomplete="off" required>
193+ <input type="text" name=" ' , $ verify_id , '_vv[code]" value="" size="30" autocomplete="off" required>
210194 </div> ' ;
211195 }
212196
@@ -228,7 +212,7 @@ function template_control_verification($verify_id, $display_type = 'all', $reset
228212 echo '
229213 <div class="smalltext">
230214 ' , $ verify_context ->questions [$ qIndex ]['q ' ], ':<br>
231- <input type="text" name=" ' , $ verify_id , '_vv[q][ ' , $ verify_context ->questions [$ qIndex ]['id ' ], ']" size="30" value=" ' , $ verify_context ->questions [$ qIndex ]['a ' ], '" ' , $ verify_context ->questions [$ qIndex ]['is_error ' ] ? 'style="border: 1px red solid;" ' : '' , ' tabindex=" ' , Utils:: $ context [ ' tabindex ' ]++, ' " required>
215+ <input type="text" name=" ' , $ verify_id , '_vv[q][ ' , $ verify_context ->questions [$ qIndex ]['id ' ], ']" size="30" value=" ' , $ verify_context ->questions [$ qIndex ]['a ' ], '" ' , $ verify_context ->questions [$ qIndex ]['is_error ' ] ? 'style="border: 1px red solid;" ' : '' , ' required>
232216 </div> ' ;
233217 }
234218
0 commit comments