Closed (duplicate)
Project:
FCKeditor - WYSIWYG HTML editor
Version:
6.x-1.3-beta2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2008 at 10:23 UTC
Updated:
4 Nov 2009 at 00:07 UTC
Comments
Comment #1
Jorrit commentedYou're saying that you want to disable FCKeditor just for specific node types?
Comment #2
Bazin commentedNo, not the node types the EIDIT text area of specific node type...
Comment #3
Bazin commentedThe node type can be disabed by instaling the custom url module and removing the specific url for a content type from the FCKeditor. The problem is with the edit text area of such content type. Becouse the url module dont call the edit part a separate url format and therefore not able to distinguish form textareas of othe content types
Comment #4
Jorrit commentedI think I get what you mean. You want to disable FCKeditor on node/xxxx/edit but only for a one node type? This is being considered for a future release.
Comment #5
Bazin commentedYes. When can I expect this future release?
Comment #6
wwalc commentedSounds like a duplicate of #268070: Assign editor-profiles to content types. We'll try to add this feature in 6.2.
Comment #7
MGN commentedYou can do this by disabling FCKeditor by html id to exclude a specific (custom) field type (field exclusion rather than path exclusion). I created a custom content type for a wiki page (uses the Pear Wiki filter) that is an exact duplicate of a page, removed the body field, and added a custom text field to replace it (with a field name of field_wiki_body). To turn FCKeditor off for this content type, I added edit-field-wiki-body-0-value to the 'fields to the exclude' section of the editor's visibility settings. This is working fine for me. FCKeditor is disabled for users who want to create wiki pages and those who want to use the editor it can do so by creating (standard) pages. My only problem is that I have to ask my users to select the right input format for the content type. It would be better if I could set a default input format for specific node types, but that's another story.
Anyway, I hope this helps.
Comment #8
grub commentedIt looks like this feature has been added to the CVS version of 6--2: http://drupal.org/node/268070#comment-980275
You can set default input formats for specific node types using the filterbynodetype module. If you are looking for a 6.x version try http://danielepighin.net/cms/software or this patch http://drupal.org/node/221424.
UPDATE: It doesn't look like filterbynodetypes supports CCK fields in 6.x, a patch is available for 5.x via http://drupal.org/node/152592.
Comment #9
summit commentedSubscribing, needing a per contenttype disbale setting for Fckeditor, greetings, Martijn
Comment #10
wwalc commented@Summit - this feature is available in 6--2 / 6.x-2.x.
Comment #11
summit commentedHi,
Sorry Wiktor , How then please?
Thanks a lot in advance for explaining how.
greetings,
Martijn
Comment #12
wwalc commentedEdit FCKeditor profile, in "Fields to exclude/include:" it is possible to use the following format:
content_type@path.element_id
for example
blog@*.edit-body - matches all fields of type "blog" called edit-body, on any page.
Comment #13
summit commentedThanks Wiktor! And good holidays to you!
Greetings,
Martijn
Comment #14
Karl L. commentedHi, I tried to use that syntax
blog@*.edit-body
to de-activate fckeditor for a certain content type's main edit field.
As a test I tried
page@*.edit-body
I added it into "Fields to exclude/include:" in the Advanced Profile (settings/fckeditor/edit/Advanced).
I received an Error: "Ungültige Feldangabe: page@*.edit-body" (Translation: "Invalid Field Information: page@*.edit-body")
So it doesn't work for me on D6.6 and fckeditor.module 6.x-1.3-rc6.
What am I missing?
Best regards! Thanks,
Karl
UPDATE: OK - I missed that this syntax already was ment to work with version 6.x-2.x.
Comment #15
sjlacroix commentedFYI For anyone that can implement hook_form_alter().
If you want to disable it on a specific field for a specified nodetype, like for example on the body field of the geshinode type, use this:
This is tested in version : fckeditor.info,v 1.1.2.1.2.1
Line 819 of fckeditor.module.
Comment #16
vivianspencer commentedI had to use the following to get it to work:
I found that this works with any field you attach it to in the $form array, for example
cheers
Comment #17
jconnery commentedHas this feature made any progress? I'm also running into this issue and would like to know an official way to address it.
Thanks to anyone who knows.
Comment #18
nachenko commentedI'm looking for a programmatic way to deactivate FCKeditor in some fields. I tried vivianspencer (#16) suggestion but no luck using FCK module 1.4. I implemented my own hook_form_alter, and used dprint_r to be sure i'm inserting the data in the form, but no luck so far.
I of course could hack the module but I'd prefer not to, and updating the module sounds risky for a production site.
Any suggestions?
Comment #19
rho_ commentedIt worked for me using vivianspencer (#16) suggestion with some slight modifications. Again this is in a hook_form_alter()
Using FCK module 1.3 and D 6.14