fixed wrong instance name for plain editor drop
This commit is contained in:
parent
e8f4a28185
commit
cb554ed136
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2.7:
|
||||
----
|
||||
fixed wrong instance name for plain editor drop
|
||||
|
||||
2.6:
|
||||
----
|
||||
outsourced main functions to emoticonchooser.js 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 + ' ';
|
||||
|
|
Loading…
Reference in a new issue