fixed wrong instance name for plain editor drop

This commit is contained in:
Ian 2013-09-13 10:40:40 +02:00
parent e8f4a28185
commit cb554ed136
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2.7:
----
fixed wrong instance name for plain editor drop
2.6:
----
outsourced main functions to emoticonchooser.js file

View file

@ -50,7 +50,7 @@ function emoticonchooser(instance_name = '', this_instance = '', cke_txtarea = '
tinyMCE.execInstanceCommand(this_instance, 'mceInsertContent', false, img);
} else {
// default case: no wysiwyg editor
txtarea = document.getElementById(this_instance);
txtarea = document.getElementById(instance_name);
if (txtarea.createTextRange && txtarea.caretPos) {
caretPos = txtarea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + ' ' + img + ' ' : caretPos.text + ' ' + img + ' ';