Closed (works as designed)
Project:
Drupal core
Version:
7.0-beta3
Component:
filter.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2010 at 21:27 UTC
Updated:
21 Nov 2010 at 21:43 UTC
I have a small issue with D7 and text formats. I created a new content type "Testimonials" and associated a a new text format called (testimonials) with the body of that content type. However D7 does not seem to remember the correct text format. Every time I go create new testimonial it uses Filtered HTML? Any ideas how I can fix this?
Comments
Comment #1
garethhallnz commentedComment #2
yched commentedsounds like a support request.
What do you mean by "Every time I go create new testimonial it uses Filtered HTML" ? Does it mean that you cannot select your "testimonials" format below your 'body' textarea ? Does it mean that you can select it but that the node is not saved accordingly ?
Comment #3
garethhallnz commentedIt means that when creating a new node (Testimonial) it should by default select the testimonial text format and it doesn't. See I have associated a text format profile (called testimonials in my case) with the body field of the Testimonial content type. So whenI go to create a new node (Testimonial) I would expect that the body field already have the testimonial text format applied to the body which in turns loads the correct wysiwyg editor profile.
Makes sense now?
Comment #4
yched commentedOdd. There's nothing in core that lets you do such a thing. So either you misunderstood some configuration, or you're using some contrib module which appears not to be doing its job as expected :-).
At any rate, this doesn't seem like an issue for core.
Comment #5
tgeller commentedNo, I understand what garethhallnz is talking about. I noticed it too. I believe it's a bug, but didn't file a bug report yet, so I'm gratefull that he's taken the initiative.
Steps to reproduce:
1) Create a content type. Save.
2) Click the Manage Fields tab, then click "edit" next to the Body field.
3) Change the Body field's text format to whatever you want. Save.
Now, when you create a new node of that content type, the default text format should be your previous choice. But it isn't: It reverts to Filtered HTML.
Comment #6
sunDrupal core does not support to preselect a certain text format for a certain content type, field, or entity.
When editing the default value of a text field, then this merely means that this value is going to be used if the user cannot access the text field at all. Otherwise, Filter module automatically resolves the default format for a user and always preselects that format.
http://drupal.org/project/better_formats is the only way to tweak text formats.