Jump to:
| Project: | Drupal core |
| Version: | 7.x-dev |
| Component: | filter.module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
It would be nice, given the threaded nature of comments, to set a default inputfilter for them...
Using input filter tools like Quote and Mailhandler's Email filter, comments can be often be trimmed down and/or formatted to reduce the cruft that often builds up... but you don't want to apply these tools to every input filter, just some ("plain text", for example).
It would be nice (and looks easy enough) to force the default of a particular input filter for comments in comment.module, and still allow it to be changed if desired.
Generic Input filter defaults per node type would be nice too, but in this case, comments is most clearly in need of it. I'm filing this as a feature against filter.module because of the potential wider solution of the issue...
though the quick answer is to patch comment.module with a hack to force the default choice.
Comments
#1
hack for comment.module to sorta do the above. Not clean, as it will override a chosen format back to the forced choice on an edit, which isn't correct... we really only to force it on a fresh instance. Suggestions?
// format selector// $form .= filter_form('format', $edit['format']); // commented out original line
$form .= filter_form('format', 4); // Plain Text format in this case is #4 input filter
#2
i second this request!
it would be ideal if default filter could be set by node type.
i was actually shocked (and so very sad...) when i realized this functionality was not avalable.
i would like to restrict events to text only but allow filtered html in blogs, stories, etc.
is this a possibility for 4.7?
is there a patch for this?
#3
Ditto I think this would be a great feature.
At the moment I have to tell the writers at my site to always manually select Full HTML when entering a story which is a hassle and all too easy for them to forget.
An extension to this might be to restrict the available formatting for each node type (e.g. comments are Filtered HTML only, stories are always Full HTML, etc). Not sure if drupal can do this already?
#4
#5
Feature request go to cvs.
#6
Thanks for taking the time to report this issue.
However, marking as duplicate of #238696: The ability to assign the default filter by node type. Please search for existing issues before submitting a new one.
You can follow up on that issue to track its status instead. If any information from this issue is missing in the other issue, please make sure you provide it over there.