Allow images to be pasted on the edit post page
This commit is contained in:
parent
6599023976
commit
d51e59192d
1 changed files with 6 additions and 0 deletions
|
@ -48,6 +48,12 @@ class FileDropperControl extends events.EventTarget {
|
|||
this._urlInputNode.addEventListener("keydown", (e) =>
|
||||
this._evtUrlInputKeyDown(e)
|
||||
);
|
||||
this._urlInputNode.addEventListener("paste", (e) => {
|
||||
// document.onpaste is used on the post-upload page.
|
||||
// And this event is used on the post edit page.
|
||||
if (document.getElementById("post-upload")) return;
|
||||
this._evtPaste(e)
|
||||
});
|
||||
}
|
||||
if (this._urlConfirmButtonNode) {
|
||||
this._urlConfirmButtonNode.addEventListener("click", (e) =>
|
||||
|
|
Reference in a new issue