textarea = document.getElementById(qe_txt_name);
function qe_insert_text(text, spaces, popup)
range.move("character", new_pos);
var range = textarea.createTextRange();
textarea.selectionEnd = new_pos;
textarea.selectionStart = new_pos;
if (!isNaN(textarea.selectionStart))
// Center the cursor when we don't have a selection
qe_insert_text(bbopen + bbclose);
var new_pos = caret_pos + bbopen.length;
var caret_pos = qe_getCaretPosition(textarea).start;
//The new position for the cursor after adding the bbcode
document.getElementById(qe_txt_name).focus();
qe_mozWrap(document.getElementById(qe_txt_name), bbopen, bbclose);
document.getElementById(qe_txt_name).focus();
document.selection.createRange().text = bbopen + theSelection + bbclose;
theSelection = document.selection.createRange().text;
for(i = 4; i = 4) && is_ie && is_win)
var i_end = return_data.length - 1;
[FAQ] Team Fortress 2 Dedicated Server • CSmania.RU
Комментариев нет:
Отправить комментарий