mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 11:05:45 +08:00
fix the build
This commit is contained in:
parent
0b295150e7
commit
9bb7a3884b
@ -33,6 +33,12 @@ export default Ember.Controller.extend({
|
|||||||
|
|
||||||
const selection = window.getSelection();
|
const selection = window.getSelection();
|
||||||
|
|
||||||
|
// no selections
|
||||||
|
if (selection.isCollapsed) {
|
||||||
|
this.set('buffer', '');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// retrieve the selected range
|
// retrieve the selected range
|
||||||
const range = selection.getRangeAt(0),
|
const range = selection.getRangeAt(0),
|
||||||
cloned = range.cloneRange(),
|
cloned = range.cloneRange(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user