diff --git a/client/html/file_dropper.tpl b/client/html/file_dropper.tpl index 3da2f4f..3123cd0 100644 --- a/client/html/file_dropper.tpl +++ b/client/html/file_dropper.tpl @@ -15,7 +15,7 @@ <% if (ctx.allowUrls) { %>
- + <% if (ctx.lock) { %> <% } else { %> diff --git a/client/js/controls/file_dropper_control.js b/client/js/controls/file_dropper_control.js index 407fa9d..f725ee0 100644 --- a/client/js/controls/file_dropper_control.js +++ b/client/js/controls/file_dropper_control.js @@ -18,6 +18,8 @@ class FileDropperControl extends events.EventTarget { allowUrls: options.allowUrls, lock: options.lock, id: 'file-' + Math.random().toString(36).substring(7), + urlPlaceholder: + options.urlPlaceholder || 'Alternatively, paste an URL here.', }); this._dropperNode = source.querySelector('.file-dropper'); diff --git a/client/js/controls/post_edit_sidebar_control.js b/client/js/controls/post_edit_sidebar_control.js index f1cfe93..3da2fa4 100644 --- a/client/js/controls/post_edit_sidebar_control.js +++ b/client/js/controls/post_edit_sidebar_control.js @@ -72,7 +72,10 @@ class PostEditSidebarControl extends events.EventTarget { if (this._contentInputNode) { this._contentFileDropper = new FileDropperControl( - this._contentInputNode, {allowUrls: true, lock: true}); + this._contentInputNode, { + allowUrls: true, + lock: true, + urlPlaceholder: '...or paste an URL here.'}); this._contentFileDropper.addEventListener('fileadd', e => { this._newPostContent = e.detail.files[0]; });