Support » Plugin: GD bbPress Tools » Quotes formatting

Viewing 2 replies - 1 through 2 (of 2 total)
  • Any idea how to fix this?

    I managed to fix it by quoting out these two lines

    //qout = qout.replace(/<p>|<br>/g, "");
    // qout = qout.replace(/<\/\s*p>/g, "\n");

    and changing the get_selection function to

    get_selection: function() {
           var html = "";
    		if (typeof window.getSelection != "undefined") {
    			var sel = window.getSelection();
    			if (sel.rangeCount) {
    				var container = document.createElement("div");
    				for (var i = 0, len = sel.rangeCount; i < len; ++i) {
    					container.appendChild(sel.getRangeAt(i).cloneContents());
    				}
    				html = container.innerHTML;
    			}
    		} else if (typeof document.selection != "undefined") {
    			if (document.selection.type == "Text") {
    				html = document.selection.createRange().htmlText;
    			}
    		}
    		return html;
        }

    in /js/gd-bbpress-tools.js

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Quotes formatting’ is closed to new replies.