By dragon2000 on
Hi all,
I have two questions abuout fckeditor:
1- I want to enable fckeditor only for "Page" content type and disable it for other content types, how can I do that?
2- for every site I have to create a custom profile manually, Is there a way to create a custom profile for fckeditor programatically?( I mean is there any api or sth else to create custom profiles?)
thanks in advance.
Comments
please help!
please help!
This is what I think you do for Q1
If you go to /admin/settings/fckeditor and select the Role that you want the settings to apply to - so probably the 'default', then click edit and go down to the Visibility menu. This is where you can choose to either include certain content types/pages or exclude certain content types/pages.
In your case, if you only want it on pages then choose 'inclusion' mode and in the 'Fields to exclude/include' box put
node/add/pagewhich would probably do the trick for creating new pages along withnode/*/editfor editing existing pages.[I am very new at this too, but in light of no other replies, you could give it a go, and see if it works for you.]
thanks, I did this exactly as
thanks,
I did this exactly as you said, but I'm getting an error: Invalid Fields specified:node/add/page
Paths not Fields
Ooops...try in the 'Paths to exclude/include'.
;)
thanks, your solution worked
thanks,
your solution worked for the add content type page by node/add/page
but for edit content type I used node/*/edit as u said, but know Fckeditor appears in edit section of all content types. I want to restrict it to just Page content type. How can I do that?
Next stable release perhaps?
From what I can find out the feature to limit FCKeditor to only appear on certain content types may be included in the 6.2 release of the FCKeditor WYSIWYG module for Drupal and not previous versions. 6.2 is supported in beta at the moment. http://drupal.org/project/fckeditor
http://drupal.org/node/284285
http://drupal.org/node/480984
I would simply take the node/*/edit out altogether again as it overrides the default settings where you may not want it.
I am sorry that I can't help you any further at this stage.
Perhaps we can help this person when we find out for sure! http://drupal.org/node/480984