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

dragon2000’s picture

please help!

Anonymous’s picture

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/page which would probably do the trick for creating new pages along with node/*/edit for 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.]

dragon2000’s picture

thanks,
I did this exactly as you said, but I'm getting an error: Invalid Fields specified:node/add/page

Anonymous’s picture

Ooops...try in the 'Paths to exclude/include'.

;)

dragon2000’s picture

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?

Anonymous’s picture

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