Posted by hctom on November 29, 2011 at 5:03pm
15 followers
| Project: | CKEditor - WYSIWYG HTML editor |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | needs security review |
Issue Summary
Hi @all,
I just mentioned, that the associated text formats get lost when an editor profile is exported by using the the drush fu feature_name command. On the other hand, everything works fine using the features UI.
Is this a feature module error or is something wrong in the export hooks of the CKEditor module?
Thanx in advance & cheers
hctom
Comments
#1
Any news on this? Or can anyone confirm this problem?
Cheers
hctom
#2
We will check this ASAP. Please be patient. Maybe some else can confirm this issue. Thank you for report this.
Please try latest DEV version and check if the problem exists there
#3
How are you able to export the wysiwyg profiles? I'm trying to find the component to be added to a feature and can't seem to locate anything. Can you advise? Thanks.
#4
Hi Coop920,
I configured my global CKEditor profile to have the right paths. And after that all profiles (including the ones that get installed by default) were exportable with the ckeditor_profile component.
Here are the steps I performed to create the feature:
drush fu feature_nameHope this helps?!
#5
I also have this problem with latest versions:
Drupal 7.14
CKEditor 7.x-1.9
Features 7.x-1.0-rc2
After
drush fu feature_name, input_formats array is now empty and feature says it is overriden.Moreover, if I now do
drush fr feature_name, I get a "Current state already matches defaults, aborting." but feature still says it is overriden.#6
Still an issue for me as well.
#7
I think to resolve your problem via drush you can add argument "--user" :
drush fu feature_name --user=1#8
I confirm the issue (with 1.9 and -dev).
Adding
--user=1works. IMHO, that should be documented.Thank you _tychris!
#9
I am having the same issue, --user=1 helps, but it doesn't really solve the problem. This should not be documented but instead be fixed. I never needed this flag for any features export and I don't see any reason why it should be necessary here.
#10
And here is the fix :)
The problem is that ckeditor_profile_load checks the user's access to the filter formats. I added a parameter $check_access and set that to FALSE on features export. Default is TRUE so it should be fine security wise whenever the function is called somewhere else. I have never seen access checks on other features exports.
#11
#10 works pretty well for me!
A very important patch in my opinion.
Could this be included in the next release?
#12
Works nicely here
#13
Agreed on the issue and on the fix :-)
#14
Seems pretty important too...
#15
Thanks. Committed patch #10.
#16
Automatically closed -- issue fixed for 2 weeks with no activity.