Ticket #3978 (closed enhancement: fixed)
Visual Editor should remember your last tab setting
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | high | Milestone: | 2.5 |
| Component: | Administration | Version: | 2.1.2 |
| Severity: | minor | Keywords: | has-patch needs-testing |
| Cc: | rob1n |
Description
Whatever tab you're on in the visual editor, be it editor or code, if you leave the page when you load next time the same tab should be auto-selected.
Attachments
Change History
comment:1
markjaquith — 5 years ago
- Keywords needs-patch added
- Cc rob1n added
IMO this is debatable. It could be expected that you just start with a fresh slate (the default when you have RTE enabled -- the RTE) whenever you load up the writing interface. Besides, if you use the code view most of the time, might as well switch over to it, right?
comment:4
MellerTime — 5 years ago
I like the idea of a cookie preference. Just because you use the code view 99% of the time doesn't mean you should have to go into your profile and flip the RTE back on the 1% of the time you want to use it.
comment:5
foolswisdom — 5 years ago
- Milestone changed from 2.3 (trunk) to 2.4 (future)
+1 MellerTime completely agree! I regularly end up disabling the Visual to work around a bug or two and then don't re-enable for a long time, because the problems occur when the post is first edited in the TinyMCE.
- Keywords has-patch needs-testing added; needs-patch removed
- Owner changed from anonymous to mdawaffe
- Status changed from new to assigned
3978.diff
- Stores editor preference in wordpress_editor_{$user_id} cookie with long expire time.
- Loads page with correct editor for that user.
- wpSetDefaultEditor( editor ): JS function to set cookie.
- wp_default_editor(): PHP function that checks cookie. Is filtered so that a plugin can store this editor preference info in the DB instead of the cookie.
-
attachment
3978c.diff
added
fixes bug when default tab is HTML and you are editing a pre-existing post

+1
Cookie-stored preference should be good enough here. If you want to use something permanently you'd just change the RTE option.