I found a bug where WYSIWYG won't load CKEditor for a site role, when only one input format is available to that role.
For example:
- Drupal has built-in "Filtered HTML" "Full HTML" "PHP Code" Input formats.
- "Filtered" and "Full" are set to show for all authenticated roles. PHP is for admin.
- WYSIWYG is configured to use "Filtered" and "Full" input formats
Now…
- I deleted "Filtered HTML" Input format, leaving only one input format enabled for all authenticated roles.
- WYSIWYG will no show CKEditor when logged-in in a role who only has access to one input format.
- Allowing more than one input format for that role, shows WYSIWYG.
Hope that makes sense.
For now, I have to create another input format and enable it for roles to use, so that WYSIWYG shows.
Can anyone else reproduce this?
Comments
Comment #1
twodI am unable to reproduce this. I've got several sites where only a single input format is available to certain roles, and I tested the steps you provided above with a fresh installation and encountered no problems. (Though, I deleted "Full HTML" as it's not possible to delete "Filtered HTML" without setting a different format as default, but that should not matter.)
Are there any JavaScript errors on pages where the editor should appear when a single format is available?
Comment #2
wOOge commentedNo javascript errors. I should note that inside a create node form — if I have the Full HTML, and PHP input filteres enabled — where the Full HTML is default (and not showing ckeditor) I then click PHP, switching the input format — wysiwyg shows ckeditor.
Comment #3
twodSorry, still unable to reproduce the issues you're having.
Mind giving me access to a site where I can debug the problem?
Comment #4
wOOge commentedOk — did a fresh install with only wysiwyg and ckedit — I went through the same steps as I did originally to encounter the problem and I can't replicate.
Thanks for the quick responses, but seems like it's my setup.
Comment #5
twodOk. If you ever find out why it didn't work on your original setup, please post it here for reference.
Thanks.
Comment #6
Schoonzie commentedThis is happening for me as well, but it's because I was using the Rubik theme. This is the new theme that is recommended for the Admin 2.x module.
More info here #933222: rubik_filter_form() breaks WYSIWYG functionality
Comment #7
jmrivero commentedIt show some "Object requiered" errors:
Agente de usuario: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Fecha: Fri, 15 Oct 2010 12:49:04 UTC
Mensaje: Object expected
Línea: 694
Carácter: 3
Código: 0
URI: mysite/sites/all/libraries/openwysiwyg/scripts/wysiwyg.js?r
Mensaje: Object required
Línea: 344
Carácter: 3
Código: 0
URI: mysite/sites/all/libraries/openwysiwyg/scripts/wysiwyg.js?r
Comment #8
twod@jmrivero, that error doesn't help much. wysiwyg.js only has about 200 lines. If you're having issues with the Rubik theme as well, please follow the issue mentioned by Schoonzie.
Looks like they have a fix on the way.
Comment #9
jmrivero commentedHi TwoD, im not using Rubik but got the same problem described in this issue and saw the Javascript errors, thought that they may help find a solution.
Mine was change to another wysiwyg module :-/
Comment #10
twod@jmrivero, I missed that the error wasn't in Wysiwyg module, but in the openWYSIWYG library, sorry about that.
This looks like a different problem than in the original issue. I was going to attempt to track it down but the openWYSIWYG site seems to be offline at the moment so I can't download it. We have an open issue involving this editor, see #713942: OpenWYSIWYG broken, jWysiwyg needs jQuery 1.3+. If you still want to try using it, can you see if the fix mentioned in that issue works? If so, please report your results in that issue.
Closing this issue due to being unable to reproduce the original problem (and #6 being a duplicate of #933222: rubik_filter_form() breaks WYSIWYG functionality).
Comment #11
twodIf you are using D7, please see #950216: No editor for singular filter format instead.