I have multiple node types.
I want to display the CKEditor on the edit-body field for all node type.
Administer > Site configuration > CKEditor > Edit CKEditor Global profile
Visibility settings
Use inclusion or exclusion mode: (*) Include
Fields to exclude/include: [*.edit-body]
That's work good, the editor is visible on all node types.
Now, I want to force the basic toolbar on only one node type, let say book:
On Add, I have: "book@node/add/book.edit-body"
On Edit, I have: "book@node/164/edit.edit-body"
I tried this:
Administer > Site configuration > CKEditor > Edit CKEditor Global profile
Visibility settings
Force simplified toolbar on the following fields: [book*.edit-body]
This force the basic on Edit, but not on Add.
I also tried:
book@node*.edit-body
Works on Edit, not on Add
book@node/*.edit-body
Works on Edit, not on Add
book@node/*/*.edit-body
Works on Edit, not on Add
The only thing that seem to work on both Edit and Add is to use two line, something like:
book@node/*/*.edit-body
book@node/add/*.edit-body
If the star was working, the second line would be redundant because the star should include the word "add". This looks like a Bug...
Is it a Bug or a feature to allow distinguish the Add form and the Edit forms?
Comments
Comment #2
ISPTraderChris CreditAttribution: ISPTraderChris commentedI response on this would be appreciated. It would seem to me that we should be able to cover the include for both ADD and EDIT of a particular node type with a single wildcard/path line -- however this does not seem to be the case. I have experienced the very same issue above.
I require both of the following two lines to enable CKEditor on both the ADD and EDIT operations of my node type:
*/page.edit-body
page@*.edit-body
It would seem to me, based upon the documentation and examples, the the second line SHOULD be all that is required because we are specifying all fields named edit-body having a node-type of 'page'.
Comment #3
dczepierga CreditAttribution: dczepierga commentedPls update to last DEV version of CKEditor module. There everything seems to work fine.
Probably today will be new release of module.
Comment #4
dczepierga CreditAttribution: dczepierga commentedIf something still not work pls reopen it.
Comment #5
gaellafond CreditAttribution: gaellafond commentedThanks for your input Damian. I'm working on a different project so I can not test with the dev version right now. I will test it and inform you of my results as soon as I as possible.
Comment #6
Compel CreditAttribution: Compel commentedISPTraderChris,
Thanks for posting #2. I am now able to add and edit books AND pages with CKEditor. I agree with you, only one convention should be needed.
This editor is a bit quirky for all of it's power. I'm still trying to figure out how to get an image into a post in less than 10 steps and without exposing my entire Webroot in the process. I doubt it's a problem with the module or with CKEDitor itself... just the steep learning curve to get at all the best practices that are undocumented for those of us without good discovery skills.