When using the CKEditor, the Teaser function does not work as expected.
1. It cuts off the text on wrong position (my setting was 800 chars and all I saw was just the included Image and the problem described in 2.)
2. I also use some functionality of CCK-module (userdefined Fieldgroups & Fields). Then, when the Teaser gives me a preview of my article, it also shows up the fieldgroups und fieldsettings.

I added some pictures.

Please contact me if you have further questions.

Comments

brack11’s picture

The 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.

CinemaSaville’s picture

Where can I get a copy of the Dec 10th dev file?

wwalc’s picture

@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?

wwalc’s picture

@CinemaSaville - check my last comment in #667706: Latest dev not working

brack11’s picture

I 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?

CinemaSaville’s picture

Yes please do. Thanks!

wwalc’s picture

Status: Active » Postponed (maintainer needs more info)
mustardman’s picture

I 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.

Dr. Evil’s picture

@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 .

brack11’s picture

StatusFileSize
new217.84 KB

Ok, 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.

dariogcode’s picture

Yes, 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

CKEDITOR.on( 'instanceReady', function( ev )
    {
        // Out self closing tags the HTML4 way, like <br>.
        //ev.editor.dataProcessor.writer.selfClosingEnd = '>';
         ev.editor.dataProcessor.writer.setRules( 'p',
                    {
                        indent : false,
                        breakBeforeOpen : true,
                        breakAfterOpen : false,
                        breakBeforeClose : false,
                        breakAfterClose : true
                    });
    });
brack11’s picture

Ok, 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.

wwalc’s picture

Confirmed... 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).

brack11’s picture

@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.

wwalc’s picture

Can't reproduce it even while editing broken articles, I've sent you an email regarding this.

brack11’s picture

confirm 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.

wwalc’s picture

Status: Postponed (maintainer needs more info) » Fixed

Ok, 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!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

zdean’s picture

Status: Closed (fixed) » Active

I'm using the Feb 4 devel and the latest CKEditor. Teasers still disappearing.

Please help!

zdean’s picture

I upgraded to the Feb 16 devel and latest CKEditor and the problem persists.

Can someone please address this?

Thanks.

mephir’s picture

Status: Active » Postponed (maintainer needs more info)

@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?

zdean’s picture

I'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.

charos’s picture

StatusFileSize
new50.9 KB
new92.72 KB

I 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.

wwalc’s picture

@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?

charos’s picture

I'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.

charos’s picture

Ok, 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.

glennr’s picture

Great 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.

linuxden’s picture

I 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,

erikhopp’s picture

Version: 6.x-1.0-beta1 » 6.x-1.1

Here 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.

aknapstein’s picture

Component: Miscellaneous » Code

I 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:

p.unknown,align:l.getAttribute('align')||''}

and replace it with:

p.unknown,align:''}
mephir’s picture

Status: Postponed (maintainer needs more info) » Fixed

@aknapstein: here you have got answer here.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.