mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 09:50:30 +08:00
fix quote reply regression
This commit is contained in:
parent
850b042cab
commit
3860a9302b
|
@ -38,7 +38,7 @@ Discourse.QuoteButtonController = Discourse.Controller.extend({
|
|||
var selection = window.getSelection();
|
||||
|
||||
// no selections
|
||||
if (selection.type !== "Range") return;
|
||||
if (selection.rangeCount === 0) return;
|
||||
|
||||
// retrieve the selected range
|
||||
var range = selection.getRangeAt(0),
|
||||
|
|
Loading…
Reference in New Issue
Block a user