mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-21 20:34:57 +09:00
Fix CKEditor and canned response issue #234
This commit is contained in:
1 parent
1249e20545
commit
301f74e38b
1 file changed
+3
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user