Bugün ben de aynı hata ile karşılaştım
Sanırım hatanın kaynağı burada
fix caret bug ya da advanced bbcodebox v5.0'dan kaynaklı!
mods/bbcode_box/bbcode_box.js[syntax="javascript"]// Fix a bug involving the TextRange object in IE. From
//
http://www.frostjedi.com/terra/scripts/ ... etBug.html// (script by TerraFrost modified by reddog)
function initInsertions() {
document.post.message.focus();
if (is_ie && typeof(baseHeight) != 'number') baseHeight = document.selection.createRange().duplicate().boundingHeight;
}
[/syntax]
[syntax="javascript"]function emoticon(text) {
var txtarea = document.post.message;
text = ' ' + text + ' ';
if (txtarea.createTextRange && txtarea.caretPos) {
if (baseHeight != txtarea.caretPos.boundingHeight) {
txtarea.focus();
storeCaret(txtarea);
}
var caretPos = txtarea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
txtarea.focus();
} else
if (txtarea.selectionEnd && (txtarea.selectionStart | txtarea.selectionStart == 0))
{
mozWrap(txtarea, text, "");
return;
} else {
txtarea.value += text;
txtarea.focus();
}
}[/syntax]