Quote selected

Фикс цитаты выделенного.
This commit is contained in:
Exile 2014-08-29 01:45:46 +04:00
commit fc063b8fc3

View file

@ -78,6 +78,11 @@ BBCode.prototype = {
getSelection: function() { getSelection: function() {
var w = window; var w = window;
var text='', range; var text='', range;
if (w.getSelection) {
text = w.getSelection();
} else {
return [null, null];
}
if (text == '') text = this.stext; if (text == '') text = this.stext;
text = ""+text; text = ""+text;
text = text.replace("/^\s+|\s+$/g", ""); text = text.replace("/^\s+|\s+$/g", "");