[wp-trac] [WordPress Trac] #29492: Attemp to keep both Text and Visual editors scroll position when switching
WordPress Trac
noreply at wordpress.org
Fri Dec 19 10:44:33 UTC 2014
#29492: Attemp to keep both Text and Visual editors scroll position when switching
-------------------------+-------------------------
Reporter: azaozz | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.2
Component: Editor | Version: 4.0
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
-------------------------+-------------------------
Changes (by avryl):
* keywords: close => has-patch
* milestone: Awaiting Review => 4.2
Comment:
Well, here's another way to do it, and pretty simple. Get the `# px
scrolled down / editor height`, switch modes and apply that percentage to
the the new height. In most cases this works pretty well! It won't be
exact, but the difference in height is in most cases spread out equally
over the entire content.
The only thing we'll need is a beforeShow and beforeHide event in TinyMCE,
so we don't have to overwrite those methods.
Moving to 4.2 for consideration.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29492#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list