Fix CKEditor and canned response issue #234

This commit is contained in:
Giedrius committed 2015-01-20 15:24:17 +02:00
1 parent 1249e20545
commit 301f74e38b
1 file changed
+3 -1
+3 -1
View File
@@ -137,7 +137,6 @@ var bb = {
matches.parents('li').addClass('active');
},
insertToTextarea: function(areaId, text){
var txtarea = document.getElementById(areaId);
var scrollPos = txtarea.scrollTop;
var strPos = 0;
@@ -169,6 +168,9 @@ var bb = {
txtarea.focus();
}
txtarea.scrollTop = scrollPos;
if ('undefined' !== typeof CKEDITOR ){
CKEDITOR.instances[areaId].insertText(text);
}
return false
}