Closed (fixed)
Project:
Wysiwyg
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Nov 2012 at 15:17 UTC
Updated:
7 Feb 2014 at 20:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
traviscarden commentedThis is a very pragmatic patch. If somebody has a quibble with the form element name, I have no problem with changing it to something more "semantic".
Comment #2
traviscarden commentedAfterthought...
Comment #3
twodThanks for the patch, but I wonder if we shouldn't just set the #group property on the fieldsets instead of adding a parent to all elements. It's already pretty complex as is, and anyone altering the form would also have to move their alterations.
Core does this in user_admin_settings() for the email fields, which works since the vertical-tabs code looks for #group properties on non-child fieldsets as well.
Comment #4
sunPlease note that we cannot put all fieldsets into vertical tabs. The vertical tabs user interface pattern is defined as follows:
- Vertical tabs must not be used for the primary form controls.
- Vertical tabs may only contain advanced options that the user may safely skip over and ignore entirely (assuming safe defaults).
In other words:
- There have to be primary form controls above the vertical tabs. (These should not be in fieldsets either, so that's a bug in the existing UI already.)
- Only advanced settings, for which the defaults are sane enough for the 80% use-case, can be moved into vertical tabs.
Most likely, we want to present the Buttons and plugins settings as the primary form controls.
Since 7.x-2.x is a stable release, we will have to do that in a backwards-compatible way; i.e.:
- Only adding a new #type vertical_tabs contianer on the top-level. Assign a #weight of 50, so the polluted vertical tabs container appears below the primary form controls.
- Change the #type of the Buttons and plugins 'fieldset' into 'container'.
Because all of that makes a shittonne of sense, let me quickly help you out there. ;)
That said, the button+plugins configuration looked a bit wonky without a wrapping fieldset, so I retained that but changed it to be not collapsible. We definitely need to improve that part of the interface... (separate issue)
Comment #5
traviscarden commentedAh! Thank you both very much; I learned several things here.
The patch works great. I think the decision to put buttons and plugins at the top makes perfect sense.
Comment #6
sunI'd like to see an additional confirmation before commit, possibly by @TwoD.
Comment #7
twodConfirmed, this indeed makes sense and preserves a reasonable amount of backwards compatibility.
However, there's a small issue. Perhaps better suited as a follow-up to #696040: No way to cancel out of admin/settings/wysiwyg/profile/[profileID]/edit, but might as well bring it up here since the last change in this patch has no visible effect.
We should have changed
#valueto#markupin D7, or used the link element.Sorry for dropping out btw, got sick...
Comment #8
sunOh, well-spotted! :)
Thanks for reporting, reviewing, and testing! Committed and pushed.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.
Comment #9
sunSorry, forgot to amend: I quickly fixed that Cancel link glitch prior to commit. :)
Comment #10.0
(not verified) commentedRemoved image from issue summary.
Comment #11
twodBackported to 6.x-2.x.
Note: This does NOT introduce a dependency on Vertical Tabs for Wysiwyg 6.x, but it will be used if installed.