-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor: Body file dropzone collapses in HTML mode #18535
Labels
[Feature] Post/Page Editor
The editor for editing posts and pages.
[Pri] High
Address as soon as possible after BLOCKER issues
[Type] Bug
When a feature is broken and / or not performing as intended
Comments
iandunn
added a commit
that referenced
this issue
Oct 10, 2017
When in HTML-mode, the Editor has a dropzone for uploading files and inserting them into the post body. Because of #18535, that dropzone is currently only 10px tall, when it should take up the entire body of the editor. The editor's HTML-mode media dropzone was introduced in #11680. At the time, there weren't any other dropzones on the screen -- the sidebar featured image zone was added a week later, in #11839 -- so the HTML-mode dropzone took up the entire screen. Because it could take up the entire screen, its placement inside the editor-html-toolbar didn't pose any tangible problems. When a third dropzone was added in #16819, the HTML-mode dropzone has its fullscreen prop disabled, so that the new dropzone would be accessible. The changes in this PR should have been done at that time, but it was overlooked. Because they weren't done, the media dropzone is currently only 10px tall, instead of covering the entire editor body. This makes it difficult for someone to drop a file in the correct location. Because there are now multiple dropzones on the editor screen, the HTML-mode dropzone should only cover the editor body itself, not the entire screen. In order to achieve that, it needs to be moved above the editor-html-toolbar in the DOM, since the toolbar is restricted to be 40px tall. Fixes #18535
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Feature] Post/Page Editor
The editor for editing posts and pages.
[Pri] High
Address as soon as possible after BLOCKER issues
[Type] Bug
When a feature is broken and / or not performing as intended
#16819 introduced a bug where the dropzone for the editor body is collapsed in HTML-editing mode.
Steps to reproduce
What I expected
The file drop should take up the entire body of the editor.
What happened instead
The (blue) file drop appears, but is only ~10px tall.
Browser / OS version
Chrome 61
Screenshot / Video
The text was updated successfully, but these errors were encountered: