Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi all,
I don't know if this is a common problem or not, but CKeditor doesn't seem to appear in header and footer areas. The only I see is a plain text areabox. Even If try to include the textarea location in the CKeditor config. I still doesn't seem to work. In all other places CKeditor works like a charm :-)
I'm using currently Drupal 6.22 - CKeditor 6.x-1.6 / the inputformat for the header is set to "Full HTML"
Any suggestions anyone.
Kind Regards
Benny
Comments
Comment #1
mkesicki CreditAttribution: mkesicki commentedPlease check attached patch. Remember that on default installation in CKEditor "Global Profile" in "Visibility settings" tab there is something like "admin/build/views*" in exclude list. Please check patch with mentioned entry and without it. Of course when this entry is there, CKEditor should not be in Views textarea.
Comment #2
mkesicki CreditAttribution: mkesicki commentedI added second patch.
Comment #3
mkesicki CreditAttribution: mkesicki commentedI commit changes to git. Please check latest DEV version.
Comment #4
bgommers CreditAttribution: bgommers commentedHello Michal,
Thanks for this ... I checked the exclude list and can't find any /views entries in the list.
Below a list of all the entries that are in the exclude list.
admin/user/settings.edit-user-mail-*
*.edit-pages
*.edit-pathauto-ignore-words
*.edit-recipients
*.edit-reply
*.edit-description
*.edit-synonyms
*.edit-img-assist-textareas
*.edit-img-assist-paths
*.edit-nodewords-description
*.edit-nodewords-description-value
admin/content/nodewords/global*
*.edit-relatedlinks-fieldset-relatedlinks
*.edit-allowed-values-php
*.edit-allowed-values
*.edit-update-notify-emails
*.edit-googleanalytics-*
*.edit-piwik-*
*.edit-feedburner-useragents
*@*.edit-webform-*
webform@*.edit-extra-items
admin/*/logintoboggan
admin/settings/actions/configure/*
*.edit-target
*.edit-wysiwyg-filter-*
I will try the patch and let you know A.S.A.P.
PS. Just one question - should I install both patches (on top of each other) ?
Kind Regards,
Benny
Comment #5
mkesicki CreditAttribution: mkesicki commentedPlease test install latest DEV version as described here: http://drupal.org/node/1288664#comment-5053656
This DEV contains patches.
Comment #6
AlexisWilke CreditAttribution: AlexisWilke commentedThat has not solved the problem.
1) Go to views
2) Create a view
3) Add a Global Text to the view (Header, Footer, Empty, either one)
4) Enter some text (usually we don't get the editor when inserting)
5) Click Update to save the Global Text changes
6) Click on the Global Text entry
7) CKEditor appears this time
8) Add to the text or something
9) Click on Update
10) Come back: notice that the text is empty, gone, wiped out
11) Enter the corresponding path in the CKEditor
*/header/text.edit-options-content*
*/footer/text.edit-options-content*
*/empty/text.edit-options-content*
so the editor doesn't appear since it creates problems, removing it is a good solution, right?
12) Come back to the view, edit the Global Text you added
13) The CKEditor appears (eventually you need to test twice)
Note that I would prefer if it were to work, but either way, both capabilities should work, or at least not get the editor until getting the editor works when clicking Update.
Okay, for now I commented out the patching in ckeditor_init() since it doesn't work at all for me.
Thank you.
Alexis Wilke
Comment #7
AlexisWilke CreditAttribution: AlexisWilke commentedChanging title as usual
Comment #8
mkesicki CreditAttribution: mkesicki commentedI commited changes to GIT.
@AlexisWilke changes in ckeditor_init function are not all changes to this ticket. Another are in ckeditor.utils.js file.
Comment #9
AlexisWilke CreditAttribution: AlexisWilke commentedmichal,
Speaking of that, why the
?I
inUsually, Core adds that for you!
Thank you.
Alexis
P.S. I'll be testing all those changes at a later time and report accordingly.
Comment #10
mkesicki CreditAttribution: mkesicki commentedDrupal add this to css and js files. This is normal in drupal. This is related with cache I think.
Comment #11
AlexisWilke CreditAttribution: AlexisWilke commentedmichal,
We agree, so why it is in the source of ckeditor?
Thank you.
Alexis
Comment #12
mkesicki CreditAttribution: mkesicki commentedI commited fix to GIT. Thanks for notice this.
Comment #13
dczepierga CreditAttribution: dczepierga commentedOk i make some changes and now everything seems to work.
I commit all changes to GIT.
If u found any more bugs, pls create new issue and report it there.
Greetings
Comment #14
mkesicki CreditAttribution: mkesicki commentedComment #15
R13ose CreditAttribution: R13ose commentedI have tried this and this is not working for me at all. I am not sure what to do anymore. I am trying to do this with a Views Header and excluding this too didn't work either.
Comment #16
mkesicki CreditAttribution: mkesicki commented@ShawnRisk please don't reopen closed tickets especially when there is such request like:
http://drupal.org/node/1288664#comment-5168928
Comment #17
moosh101 CreditAttribution: moosh101 commentedHi.
This is not working for me either, I am using CKEditor 1.8 and the latest version of Views. The full ckeditor is displayed in the Views Empty Text Global Text Area and will not save any text written. I have tried adding the exclude paths in their raw form and using wildcards, but none work.
I have included a screenshot showing the editor displayed in these text areas.
Comment #18
mkesicki CreditAttribution: mkesicki commented@moosh101
Please try use latest DEV version, it contains fixes to this issue.
Second don't reopen closed tickets (http://drupal.org/node/1288664#comment-5353120 & http://drupal.org/node/1288664#comment-5168928).
Comment #19
wwalc CreditAttribution: wwalc commentedNot: I did not check whether it is working or not, but there is one thing that "looks wrong" and most probably is wrong.
"admin/ckeditor/get_settings'' is called by jQuery along with the following attributes:
{'id': imagefield_id, 'url': url, 'token': Drupal.settings.ckeditor.ajaxToken}
Now, when opening the ckeditor_get_settings() function in ckeditor.module, we can find code like:
so basically, $_POST['id'] is used, BUT, and here is my concern, in one line there is:
$_POST['#id'] ???
Comment #20
AlexisWilke CreditAttribution: AlexisWilke commentedHi michal_cksource,
Note that it is quite customary to reopen the same issue when it still doesn't work.
Actually, in most cases the author is expected to wait until the users say that it works for them instead of closing the issue before a "real fix" is found. 8-)
I now have tested the latest from earlier today and the editor works, but the content is still not saved. It is as if the CKeditor could not copy of the content of its textarea to the main textarea before the Views grab the content and their JS posts it to the server.
At this point I re-applied my "patch" as in #6 so I can still edit the header and footer of my views.
Thank you.
Alexis
Comment #21
Webpark CreditAttribution: Webpark commentedStill not working for me. I have installed latest Views & CKEditor dev release. The editor only save text to the view in plain text mode. It wont save or update text in full-html mode.
Comment #22
dczepierga CreditAttribution: dczepierga commentedI make next patch for this bug...
Before attach this patch pls update to last DEV version - it's needed, because there was more bugs with ajax calls which are fixed now.
After do this include/exclude option should start to work. I also try to remove exclude from Views fields in "Global Profile" and for me everything start to work without problem.
So pls review this patch and write does it help or not.
Greetings
Comment #23
Webpark CreditAttribution: Webpark commentedI installed the latest dev module and applied the patch and IT WORKS :) Thanks
Comment #24
dczepierga CreditAttribution: dczepierga commented@AshleyBoardman, one more thing: Could you try to remove
admin/build/views*
from Global Profile exclude list and check does CKEditor work without problem for this fields?Greetings
Comment #25
Webpark CreditAttribution: Webpark commentedI already had admin/build/views* removed from Global Profile exclude list. What I did find is that you have to change the input format to plain text and then insert the html code for it to work. Took a while to work out but I eventually got it.
Comment #26
dczepierga CreditAttribution: dczepierga commentedWe found some cases in which this patch not help and CKEditor not work correctly.
I've attach new version of patch. Patch is created from last DEV version on GIT version, so if someone apply last patch pls rebase to last DEV version of GIT and use this patch.
Pls review this patch and write does it work or not.
Greetings
Comment #27
AlexisWilke CreditAttribution: AlexisWilke commentedI tried today with 1.11 and it is still not working for me.
Have you tried with Views 3.x? Or just 2.x? I have 3.x only.
Thank you.
Alexis Wilke
Comment #28
mkesicki CreditAttribution: mkesicki commented@AlexisWilke last fixes was for 2.x only.
Comment #29
AlexisWilke CreditAttribution: AlexisWilke commentedmichal,
As I upgraded I looked at the code and could see changes to the handling of views but not enough, I guess, to fix the "real" problem. It's not too important to me to have that one as a WYSIWYG so no biggie.
My change in #6 still applies just fine to avoid such problems.
Thank you.
Alexis
Comment #30
iantresman CreditAttribution: iantresman commentedThe footer suggests using the exclude element:
admin/build/views/ajax/display/mypagename/footer.edit-footer.
This did not work.
I tried changing the exclude element to:
admin/build/views/*
This did not work
I tried changing the exclude element to:
admin/build/views*
This worked!
Comment #31
Tilo CreditAttribution: Tilo commentedHi
I had a similar problem:
admin/build/views/ajax/display/mypagename/footer.edit-footer -> did not work
admin/build/views* -> did not work
but...
*admin/build/views* -> works
It seems the asterix in front of the path or field name is required if not using the full path.
Comment #32
tigszero CreditAttribution: tigszero commentedTilo's solution is indeed needed to solve the problem.
(I use the latest version of CKEditor module and library as of now.)
Comment #33
OrinocoDelta CreditAttribution: OrinocoDelta commentedhi your patch doesn't work with the latest dev version…
Comment #34
wwalc CreditAttribution: wwalc commentedSetting status accordingly.
@OrinocoDelta - would you try to recreate the patch and let me know if it worked properly?
Comment #35
kendouglass CreditAttribution: kendouglass commentedThis is also an issue for me in Drupal 7.