By bkosborne on
Okay so I have CKeditor setup for posting "body" content to pages. I have it so that the editor is used for just adding and modifying body content.
The input format is set to "Full HTML" by default when creating the content, but when I go to modify, it is set to "Filtered HTML". Why is this happening? I have it setup like this because only the administrator will be adding content to the pages and I want him to have full power for CKedtior.
Where can I modify these default settings? I'd like to make it so that it is set to Full HTML for just editing the body content like this and only this.... Thank you.
Comments
Goto admin/content/types and
Goto admin/content/types and walk through editing each content type and make sure it's default input format is "Full HTML". That's where Drupal gets the default input format from when editing any content type.
-Blake
www.BlakeSenftner.com www.3D-Avatar-Store.com
Blake, Thanks for the reply.
Blake,
Thanks for the reply. On my edit content types page, I only have the following groups
Identification
Submission Form Settings
Comment Settings
Fivestar ratings
Workflow settings
No where within those can I change the default input format. I'm sure I'm missing something ... ?
Brian
Same problem
I have the same problem as Blake. When I edit the content types, I do not have a setting for Input Format. It used to be there, but now it does not appear on any of my content types.
In addition, I have a problem similar to the original question. I have the default input format (in Admin/Input Formats) set to Full HTML. But under the Defaults tab, I have my average users set to Filtered HTML, and myself set to Full.
I edit a lot of my users posts, and I want to have full HTML available for myself, but not for my users.
My problem is, when I (in the role of administrator) open a node created by a normal user, it still opens in Filtered HTML. It takes all of 2 seconds to go down and click on full HTML, but I would rather not have to do that.
The defaults seem to behave properly when creating new content. I get Full HTML and my users get Filtered. But whenever I try to edit a users work, I seem to get what the node was created in (Filtered HTML).
This is not a big problem, but it's not exactly what I want. Does anyone have an suggestions, or do I just have to live with this one?
Same problem
I have the same problem as Blake. When I edit the content types, I do not have a setting for Input Format. It used to be there, but now it does not appear on any of my content types.
In addition, I have a problem similar to the original question. I have the default input format (in Admin/Input Formats) set to Full HTML. But under the Defaults tab, I have my average users set to Filtered HTML, and myself set to Full.
I edit a lot of my users posts, and I want to have full HTML available for myself, but not for my users.
My problem is, when I (in the role of administrator) open a node created by a normal user, it still opens in Filtered HTML. It takes all of 2 seconds to go down and click on full HTML, but I would rather not have to do that.
The defaults seem to behave properly when creating new content. I get Full HTML and my users get Filtered. But whenever I try to edit a users work, I seem to get what the node was created in (Filtered HTML).
This is not a big problem, but it's not exactly what I want. Does anyone have an suggestions, or do I just have to live with this one?
I think you may have to live
I think you may have to live with that last issue. When a node is created, the input filter setting is saved with it. Re-editing that same node triggers the use of that same input filter - otherwise you might not get the same formatting due to additional input filters like swftools that are available in one input filter and not another.
-Blake
www.BlakeSenftner.com www.3D-Avatar-Store.com
auto-setting FULL-HTML for admins
I've not tested this, but having been getting into jquery a lot lately, it would not be too difficult to set up the following:
1) create a new module that only implements hook_form_alter()
2) inside your hook_form_alter(), activate logic when the user is admin and the form being processed is one of the content type forms you want to be able to auto-edit as admin with a Full-HTML input filter, regardless of what input filter the node was created with,
3) the logic activated will be to insert some simple jquery onto the page
4) that jquery would be activating the option widget inside the input filters that corresponds to the Full-HTML setting.
Something like this would be your jquery:
where the div with the id = "edit-format-2-wrapper" corresponds to my Full-HTML radio button. This is the same as you clicking the Full-HTML option yourself, and executes when the page is loaded.
Note that there is a problem after using something like this: your user created the node in something other than Full-HTML, and you could now edit it using Full-HTML and add markup to the content that is only allowed with Full-HTML. If your user edits the node after you, it was "promoted" to Full-HTML when you saved it from your edit. I'm not sure if your user will retain the Full-HTML setting, or their Filtered-HTML will override, but either way your user's node will either get your Full-HTML stripped out by the user's Filtered-HTML setting, or they will have Full-HTML editing and your site will have a security loophole.
-Blake
www.BlakeSenftner.com www.3D-Avatar-Store.com
Better Formats module
I'd suggest using the Better Formats module (http://drupal.org/project/better_formats). You can then go to /admin/settings/filters/defaults and set different default settings for different user roles, different content types etc.
yourdomain.com/admin/settings/filters/list
simply go to this url (yourdomain.com/admin/settings/filters/list) to define your default input type
seriously?
Seriously? You cannot have a default format set on a content type? I have a drop down list in the CCK Manage Fields page that lets me choose a format for my body field, but it does not save my choice.
BTW - the drop down list mentioned above is no longer visible if 'Plain Text' is selected in the 'Text Filtering' Option of the page.
A work around seems to be to re-order the list of Text Formats on the Text formats page. I have set mine to have the least restrictive at the top. In the CCK Manage Fields shows the first item on that list. I assume - but have not tested - that users will get the highest priority text filter they have access to.
don
BTW - am importing Drupal 6 content into Drupal 7 using node export in D7 and the Feeds and Feeds XPath Parser to import into new nodes. Following Drupals upgrade procedures left a lot of custom fields and so forth behind - notably going from FeedAPI to Feeds.
Better Formats looks like it is what I want ... but still in dev for D7. Got more beta and dev modules than I want already :-(
Don Robertson
Christchurch, New Zealand
don@robertson.net.nz
021 294 1542
Full HTML set when creating, but Filtered when editing
Go to configuration Text formats and change the order of editors and save :)