[wp-trac] [WordPress Trac] #17136: Distraction-free writing mode
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 20 08:43:51 UTC 2011
#17136: Distraction-free writing mode
----------------------------+------------------
Reporter: azaozz | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.2
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: |
----------------------------+------------------
Comment (by azaozz):
Replying to [comment:16 chexee]:
> ...when I type a lot of text, the box expands, but doesn't re-collapse
when I remove text.
Unfortunately WebKit (Chrome, Safari) doesn't update any of the
`clientHeight, offsetHeight, scrollHeight` etc. in `document,
documentElement` or `body` when in contentEditable mode. Seems we will
have to listen for the backspace and delete keys and force an autoresize
at least in these cases (despite that I really hate adding more functions
onkeyup).
@andrewryno for some reason WebKit was going wild when trying to get the
iframe size before the CSS was applied completely. Tweaked the autoresize
on init a bit, seems fixed now.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17136#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list