mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
insert_text now working properly in IE for smilies again
git-svn-id: file:///svn/phpbb/trunk@6624 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
2c8cae5226
commit
3a85729945
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ function insert_text(text, spaces, popup)
|
|||
{
|
||||
text = ' ' + text + ' ';
|
||||
}
|
||||
if (textarea.createTextRange && !isNaN(textarea.caretPos))
|
||||
if (textarea.createTextRange && textarea.caretPos)
|
||||
{
|
||||
var caret_pos = textarea.caretPos;
|
||||
caret_pos.text = caret_pos.text.charAt(caret_pos.text.length - 1) == ' ' ? caret_pos.text + text + ' ' : caret_pos.text + text;
|
||||
|
|
Loading…
Add table
Reference in a new issue