CodeIgniter Smiley Helper Internet Explorer Compatibility Issue
FILED IN codeigniter | php No Comments
Last week I had some compatibility issues with the CodeIgniter Smiley Helper, it was working on all browser but the holy Internet Explorer.
I am not sure if the bug was fixed already, so if you are having this issue, this is what i did to fix it.
Open: system/helpers/smiley_helper.php
Line 39:
document.selection.createRange().text = text;
For some reason, Internet explorer says there’s an error there, I assume it is because the variable text does not exist within the function so I changed ‘text’ for ‘smiley’.
document.selection.createRange().text = smiley;
And it worked, Internet Explorer 6+


