Closed (won't fix)
Project:
Drupal core
Version:
7.x-dev
Component:
filter.module
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
3 Sep 2008 at 20:39 UTC
Updated:
22 Nov 2008 at 17:01 UTC
Jump to comment: Most recent file
Comments
Comment #2
amitaibuLet's see if this will make the Bot happy :)
Comment #3
maartenvg commentedI don't think #125315: Textarea with input format attached will make this patch obsolete, but it might break it. This is because that issue has veered off from a usability improvement to a technical way to attach input-formats directly to textareas without any changes to the UI.
This patch still applies, but I do not get the promised behavior. See the attached screen shot.
Finally, the patch uses occasionally \r\n newlines in stead of \n.
Comment #4
amitaibu@maartenvg ,
Sorry, I've omitted an important detail - you should visit
admin/build/themes/settingsand Enable theAlways hide the filter tips in a collapsible fieldsetNew patch removes incorrect line endings and white space.
Comment #5
maartenvg commentedAh ok. In that case: it works.
I'm not so sure whether
admin/build/themes/settingsis such a good place to this, because why do we want this to be theme-dependent. It definitely wasn't the first place I looked. Perhapsadmin/settings/filteris a better location, because it influences the filters?Comment #6
catchI think we could make this standard behaviour - it definitely doesn't require a setting.
Comment #7
amitaibu[sorry, double post]
Comment #8
amitaibuPatch adds behavior without any settings.
Comment #9
amitaibuRemoved un-necessary
elseComment #10
damien tournoud commentedThis patch doesn't seem incompatible with neither #125315: Textarea with input format attached nor #304330: Text format widget.
Please also remove the
ifand the comment:Comment #11
damien tournoud commentedHum. No.
You have to keep the if/else and put the fieldset outside it.
Comment #12
amitaibuFollowed Damien's comment #11 and moved fieldset out the if/else.
Comment #13
amitaibuReroll to apply cleanly.
Comment #14
Anonymous (not verified) commentedThe last submitted patch failed testing.
Comment #15
amitaibuRe-roll after pfir gone wild :)
Comment #16
maartenvg commentedWorks like a charm now. Seeing that at least 2 people have looked at it, and the fact that the patch is tiny, I've marked this RTBC. Let's see what the core maintainers think about this feature.
Summary of the patch:
The result of this patch is this: http://drupal.org/files/issues/Snap1_57.png (but collapsed by default). This improves usability because the screen is less cluttered by input format information which might be extremely long when using more filters. Especially if there are more than 1 text areas with input formats attached.
Comment #18
maartenvg commentedThanks bot, I found a small bug: no need for validation callback if there is only 1 input format, because in that case there are no radio buttons to check.
I ran some tests, and this time they run fine. Let's hope the bot agrees.
Comment #19
dries commentedPersonally, I'm not convinced this is an improvement. What is the rationale for this? It seems to be missing from this discussion.
Comment #20
amitaibuThe reason behind the patch might not be noticable if the input format appears only once in a form -then it probably doesn't bother very much. However, when we have a form with several fields - a user will see multiple instances of the open input format fieldset. In that case I think having a collapsed fieldset is better then an open one in order to remove the form clutter and the annoyance of the same duplicated explanation about the input format.
Comment #21
maartenvg commentedIt's an usability improvement, because it seriously decreases visual clutter in the following situations (or combinations thereof)
- when there are multiple textarea's with input filtering enabled
- when the visible input format has a lot of filters (I've seen sites with 8 or more lines of input filter descriptions)
- when there are more open fieldsets that have a higher attention priority than the input filters. e.g. the node/add/* pages with menu- , path-, workflow fieldsets, etc.
So more or less the same reason to collapse it when there are more than 1 input format to choose from.
Comment #22
webchickHm. I'm sorry, but I think I am going to won't fix this in favour of #304330: Text format widget, where members of the usability team are re-working the input format interface entirely.
The overall goal you have here -- make this more consistent so it looks the same for users regardless of how many formats they have access to -- is a very good one. But the approach taken at the other issue is http://img.skitch.com/20081028-d5mkx7g31h382h9xq1p7ktyeb6.png which I believe also satisfies this goal, and is a bit nicer looking visually.
I really encourage you though to chime in over there since it'd be awesome to combine efforts on fixing this nasty part of core once and for all! :)