[wp-trac] [WordPress Trac] #27013: Contain scrolling inside the editor

WordPress Trac noreply at wordpress.org
Wed Mar 5 01:46:51 UTC 2014


#27013: Contain scrolling inside the editor
----------------------------+-----------------------
 Reporter:  azaozz          |       Owner:  azaozz
     Type:  task (blessed)  |      Status:  reopened
 Priority:  normal          |   Milestone:  3.9
Component:  TinyMCE         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  needs-testing   |     Focuses:  ui
----------------------------+-----------------------
Changes (by nacin):

 * type:  enhancement => task (blessed)


Comment:

 avryl, I know you have a unique use case, but post.js isn't designed to be
 used on the frontend.

 [27368] is a great improvement. I think I see a few more areas of
 improvement. *Potentially* —

  * The editor's height should include #postdivrich (.edit-form-section),
 not just the iframe. As in, if the toolbars (top or bottom) are out of
 view, it should scroll to them. I can't imagine that's easy but I imagine
 an offset somewhere could do it?

  * Can we prevent the bottom of the editor from ever being hidden? As in,
 can we dock the bottom of the editor to the bottom of the viewport,
 shrinking it up to say only 100px tall? If you have a stored preference of
 1000 pixels, but only 200px to show the editor, that's all that should be
 shown, and it should grow automatically while you scroll down (fixed to
 the bottom) until you've crossed a height of 1000 pixels.

  * Can we prevent the editor from ever being taller than the viewport?
 Similar to the last point, if the window is only 674px pixels tall (as
 mine often is on an 11" MacBook Air), then that's the very tallest that
 #postdivrich should become. Once you scroll down past that point, the
 editor shouldn't grow any more, that way the toolbar is visible on top.

 I'm gonna ask MarkJaquith to weigh in as well, as this is a white whale
 we've been chasing for years.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27013#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list