mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/posts: allow updating content from URL
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user