Closed (fixed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2009 at 17:22 UTC
Updated:
2 Jul 2010 at 10:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
brack11 commentedThe same thing happened to me but I moved to version 6.x-1.x-dev (2009-Dec-10) (not the latest one 6.x-1.x-dev (2009-Dec-24)) And it looks ok so far.
Comment #2
CinemaSaville commentedWhere can I get a copy of the Dec 10th dev file?
Comment #3
wwalc commented@brack11, CinemaSaville - do you have exactly the same problem? The original report is about automatically created teasers (if I'm correct) and has nothing to do with that whether teaser button is available in CKEditor toolbar or not. Just want to be sure that you're talking about the same issue.
@Dr. Evil - does it happen only with CCK or with page/story content types as well?
Comment #4
wwalc commented@CinemaSaville - check my last comment in #667706: Latest dev not working
Comment #5
brack11 commentedI dont know actually if my problem is the same as CinemaSaville - in my case the teaser text disappears completely, as the teaser break would be on the first line even before all texts starts. However, teaser line, according the ckeditor, is on right place.
@CinemaSaville I you like I can pack my working version from Dec 10 and send to you, would I?
Comment #6
CinemaSaville commentedYes please do. Thanks!
Comment #7
wwalc commentedComment #8
mustardman commentedI have the same problem using latest CKeditor and latest CKeditor Drupal module. Firebug does not show any errors.
It's the same in Firefox and IE. Cleared Drupal and browser cache. Same thing.
EDIT: Note, This problem is in the Beta version. I tried installing the more recent developer version and the problem seems to have disappeared.
Comment #9
Dr. Evil commented@wwalc:
sorry, the problem occures on both
But the problem changed somehow after switching to the dev-version of CKEditor. currently I get no teaser at all. It now behaves like brack11 describes .
Comment #10
brack11 commentedOk, I found the problem - it's the space in-front of paragraph right after
<p> ...This space is always inserted in the paragraph for some reason, and if I remove it manually, the ckeditor works as it should. see the attached image where I selected the extra space that needs to be removed for normal work.Comment #11
dariogcode commentedYes, I found in CKeditor forum this config. I placed it at the top of ckeditor.config.js in ckeditor and it work and fix the teaser problem and the
indent problem
Comment #12
brack11 commentedOk, here is how to reproduce the problem:
I click Create Content->Story-> Type some content, save it, teaser is okay, going back to content edit it and insert teaser break somewhere right after first line of text, teaser disappears... The problem is still there. Adding the code above solves the problem only in newly created contents, the old ones behave the same way even after re-saving them. Removing teaser break line solves the problem most of the time (not always) even without adding extra code in ckeditor.config.js
I'm using latest beta1 now.
Comment #13
wwalc commentedConfirmed... but using the beta version of CKEditor module. I cannot confirm in the latest dev release.
Can you check it in the dev release? Please make sure that you hve cleared Drupal cache and browser cache before testing it.
There was a problem with teaser in the beta release that was already fixed #653498: Empty teasers when editing content (the easiest way of reproducing it was clicking on the "preview" button before saving the article) - the fixed version of CKEditor module is currently available only as a "dev" release.
The distributed beta-1 version has not been changed at all, even if those issues were closed as fixed, that's why it is important to check it using the latest dev release.
Regarding setting writer rules - I've seen a lot of magic, but just cannot understand how this may solve problems with teaser break, I suspect that probably you have cleared browser cache after changing it or something like that and that's why it fixed the problem for you. Those rules change only slightly the number of white characters in the final HTML code (by reducing or adding some white characters, likt tabs, line breaks, spaces).
Comment #14
brack11 commented@wwalc
I just install the latest dev version and tried to edit a few created by you articles and preview them, unfortunately have to say that teaser didnt appear before I have removed first indent in old articles. So, new articles are creating ok but the old ones... re-saving them in new editor doesnt help, unless removing the first indent.
Comment #15
wwalc commentedCan't reproduce it even while editing broken articles, I've sent you an email regarding this.
Comment #16
brack11 commentedconfirm this. so, i guess the problem is solved?
@wwalc - I'm very impressed with the level of support you provide. I believe this project will be very alive for the long time, because of support you provide.
Comment #17
wwalc commentedOk, I'm setting this as fixed.
@anyone - please reopen this issue if you can confirm that there is a problem with a teaser when using the latest version of CKEditor from http://ckeditor.com/download and the latest dev release of CKEditor module.
@brack11 - thanks for your kind words and for your help!
Comment #19
zdean commentedI'm using the Feb 4 devel and the latest CKEditor. Teasers still disappearing.
Please help!
Comment #20
zdean commentedI upgraded to the Feb 16 devel and latest CKEditor and the problem persists.
Can someone please address this?
Thanks.
Comment #21
mephir commented@zdean: can you write something more about it, i cannot repeat this issue. I've tried before with no result too. Can you provide me information about cck and ckeditor configuration?
Comment #22
zdean commentedI've sinced migrated back to FCKEditor...but here's what the problem was for me...
1. I was using CKEditor and DDBlock (slideshow) modules
2. The teaser of the Body from various nodes was included in the ddblock slideshow
3. If I created/edited a node without CKEditor, the teaser showed up fine in the slideshow
4. If I created/edited a node with CKEditor, the teaser would disappear in the slideshow (all other fields worked fine)
5. When creating/editing a node with CKEditor, I would click the "Source" button to see the formatting. There were extra spaces or tabs before the first paragraph. If I deleted these extra spaces, the teaser would work normally (it would show up on the slideshow). But if I went back into that same node edit/saved it, the teaser would disappear again.
Hope this helps..would love to be able to use CKEditor on future projects.
Comment #23
charos commentedI think it's related to the
<p>. See attachment. I don't understand why there is such a big space between<p>and the wysiwyg input.Comment #24
wwalc commented@charos - do you have perhaps somewhere a test environment where you're still able to reproduce this issue? Can you send me a PM with a link?
Comment #25
charos commentedI'm trying to figure out whether this is related to Excerpt module in my case. Once I eliminate this possibility , I will let you know.
Comment #26
charos commentedOk, the way I was checking the teaser visibility before wasn't very wise while using Excerpt module since the auto teaser is saved on creation (preview doesn't show anything). Also the fact that I didn't see the teaser upon creation was again related to the new way of nodeapi $op 'presave' lately in D6. I can see the teaser fine now but although it's not a big issue , still after
<p>there is a space (talking about teaser2.jpg) . This is not happening when I change in settings Cleanup and output --> Enter mode: (Set which tag CKEditor should use when [Enter] key is pressed.). If I change to<br>instead of<p>then this is ok. It is as if I click inside CKEditor it automatically send Enter command. Once again that's not really an issue since this spacing is not taken into account in Drupal's teaser. Sorry for the initial confusion.Comment #27
glennr commentedGreat to see this excellent editor forging ahead, thanks wwalc. Unfortunately, I'm still getting this problem with v6.x-1.1: CKeditor creates extra indents, resulting in missing teaser. However, the solution in #11 fixes it, thanks darioarg.
Comment #28
linuxden commentedI can confirm this issue is still open with the latest versions:
ckeditor source: ckeditor_3.3
Module: ckeditor-6.x-1.1
Fix in post #11 resolves this issue.
Does this need to be pushed upstream?
Kind Regards,
Comment #29
erikhopp commentedHere is more documentation on the issue from the CKeditor forum: http://cksource.com/forums/viewtopic.php?f=6&t=18067
I'm seeing this behavior using 6.x-1.1 as well.
Comment #30
aknapstein commentedI can confirm this issue, plus in my case, when pressing the "insert teaser break" button no teaser break is inserted,
but the following JS error occurs: l.getAttribute is not a function
File: http://www.example.com/sites/all/modules/ckeditor/ckeditor/ckeditor/cked...
Line: 115
Browser: FireFox 3.5.9
CKedit Module: CKEditor 3.3.1, released on 10 June 2010;
My Fix for that:
I applied the Fix from #11 - darioarg on the top of: $drupalDir$/sites/all/modules/ckeditor/ckeditor.config.js
Then in file ckeditor.js which is placed in: $drupalDir$/sites/all/modules/ckeditor/ckeditor/ckeditor/ckeditor.js (yeah, that's right)
In Line 115 search for:
and replace it with:
Comment #31
mephir commented@aknapstein: here you have got answer here.