diff --git a/client/js/controls/post_edit_sidebar_control.js b/client/js/controls/post_edit_sidebar_control.js index 70570d75..f1cfe934 100644 --- a/client/js/controls/post_edit_sidebar_control.js +++ b/client/js/controls/post_edit_sidebar_control.js @@ -72,10 +72,13 @@ class PostEditSidebarControl extends events.EventTarget { if (this._contentInputNode) { this._contentFileDropper = new FileDropperControl( - this._contentInputNode, {lock: true}); + this._contentInputNode, {allowUrls: true, lock: true}); this._contentFileDropper.addEventListener('fileadd', e => { this._newPostContent = e.detail.files[0]; }); + this._contentFileDropper.addEventListener('urladd', e => { + this._newPostContent = e.detail.urls[0]; + }); } if (this._thumbnailInputNode) {