The Features module allows you to develop locally, bundle different site components and export them. For example, one could create a "Slideshow" feature bundle which includes the following components - Flag, CCK, Views, ImageField, ImageCache.
One way I'd like to use them with CKEditor is to create a bundle called something like "My Standard WYSIWYG Bundle" with CKEditor, HTML Purifier, IMCE as well as the related permissions. However, CKEditor currently doesn't work with Features to bundle the visibility settings. I'm guessing the right place for the CKEditor module developers to look at would be the API under the Features documentation. This, like the first Slideshow example I mentioned above, will save me valuable time because I use these modules in the same combinations for almost every website I build. At the moment, whenever I update the Visibility Settings for a CKEditor Global Profile on my local copy of my website which I work on first, I have to copy and paste it into the same form on the live version.
I hope i've explained myself clearly as to the benefits of hooking up CKEditor with Features. I've attached a screenshot to show you what my KR CKEditor bundle page looks like.
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | ckeditor.features_1.patch | 3.74 KB | tangent |
| #5 | ckeditor.features.patch | 3.93 KB | jcisio |
| kr_ckeditor_screenshot.png | 59.74 KB | kriskhaira |
Comments
Comment #1
kriskhaira commentedComment #2
kriskhaira commentedComment #3
zarudnyi commentedSame here, but I can't save any settings for CKEditor on my features.
Comment #4
jcisio commentedIf none of CKEditor maintainers started working on this issue, I'll take a look on it.
Comment #5
jcisio commentedneilnz's patch from #968416: Support for exporting CKEditor profiles into features (Features module integration) - patch. I've changed this patch a little (remove the unknown "rank" variable, fix the path).
Comment #6
wiifmPatch applied cleanly to my 1.2 install, and I managed to successfully export all profiles. Will be able to test the import on another machine tomorrow
Comment #7
wiifmSuccessfully imported the feature to another box, no hiccups. I am happy with this patch. I do not know if more eyes are required over it though. Would be keen to see this patch in the next release!
Comment #8
wizonesolutionsGoing to try this as well.
Comment #9
wizonesolutionsApplied and worked fine, although I got a couple foreach() errors on it. These did not seem to affect the revert feature though.
So I second the RTBC. Let's get it in -dev!
Comment #10
dubois commentedEverything seems to be working. However, I also get a warning:
And another:
Comment #11
alfthecat commentedTested the patch, but for me it didn't work. Not getting errors, just no exported profiles.
I did get the option to add CKEditor profiles to my feature but my exported values were not respected on install. The CKEditor profile sport an 'overridden' status, probably because my exported variables are reset by the installation sequence of the CKEditor module itself.
Comment #12
dczepierga commentedI make some changes in patch and commit it to CVS. Everything seems to work.
Please check the latest dev release and let me know if you notice any poblems with it. Remember to clear Drupal cache and browsers cache before testing.
@jcisio, really thx for your patch and good job :)
Greetings
Comment #13
jcisio commenteddczepierga, no I won't take the credit, as I stated in #5 that it was not my patch, but neilnz's, I just did some small modification.
Comment #14
dczepierga commentedAhhh sry my fault...
@neilnz, so really thx for good work and u @jcisio for modifications :)
Greetings
Comment #15
kriskhaira commentedAmazing work. Thank you, @neilnz, @jcisio and @dczepierga :)
Comment #16
tangent commentedI've updated the provided patch to resolve the warning issue. The section of code causing the warning actually does nothing (roles are not stored in settings) so I removed it. All functionality now works as expected.
This is a high priority feature for me so please commit this. I'm not sure why the issue is marked fixed because there is no indication it has been committed so I'm changing the status.
Comment #17
jcisio commentedIt was committed at http://drupal.org/cvs?commit=500476 but only in 6.x.
Comment #18
tangent commentedWorks for me. Setting this as fixed.
Comment #19
tangent commentedComment #20
alfthecat commentedNow I'm confused.
It's still not working for me. I'm working with my own installation profile.
I upgraded to latest .dev release, since it was committed. I then noticed my CKeditor profile settings appeared as 'overridden' still in my features admin interface and indeed my exported variables were ignored on the ckeditor settings page.
I then tried the patch and got
patching file ckeditor.module
Hunk #1 succeeded at 1175 with fuzz 2 (offset 49 lines).
The next patch would create the file includes/ckeditor.features.inc,
which already exists! Assume -R? [n] y
patching file includes/ckeditor.features.inc
patch: **** unexpected end of file in patch
I ran my install profile again, which failed and gave me a critical error concerning ckeditor. Only when I revert I get the changes to propagate.
What am I missing?
Comment #21
dczepierga commentedMaybe try to use last DEV version of CKEditor module, there any patch is not needed to work with it...
Greetings
Comment #22
alfthecat commented@dczepierga,
Thanks, but indeed I tried that at first, without applying a patch. But it doesn't work... Any thoughts?
Comment #23
alfthecat commentedTentatively setting this back to 'needs work', for the committed patch does work on activating a feature manually, but after my extensive efforts to get this to work in an installation profile I can report that automated install fails.
My steps / info:
- My install profile enables/ installs a few features, the first one includes the new ckeditor dev version and an export of general, default and advanced profile. It also includes IMCE, which is set as the default filebrowser in the export.
- My install profile reverts all features at the end
- In my .profile file, I have tried enabling both ckeditor and imce before the features are enabled but to no avail.
- The feature containing the ckeditor export appears as overridden after install and only when I revert it manually the ckeditor profile settings are propagated.
Hope this helps and my thanks in advance for any guidance on this.
Comment #24
dczepierga commented@AlfTheCat, i move your bug report to new issue - #1103980: Features module - automated install fails.
I closed this issue, because we give support for this module and release new version with it, so all bugs should be reported apart.
Greetings
Comment #25
alfthecat commentedHi dczepierga, thanks and grateful for your continued help on this!