Version of fckeditor: latest (2.6rc)
Version of FCKeditor module: latest (6.x-1.1, released March 20, tar size 43,278 bytes)
Drupal version: 6.1, as per http://drupal.org/drupal-6.1
The problem seems to be an apparent conflict between fckeditor and the teaser break
tag. It is consistent across all major browsers (IE,FF,OP & SF), where it has almost identical behavior.
In the new 6.1 version of the CMS, in the content management section, there is a split input field for Page, Story, etc. which allows for separate editing of teaser and body of an article. With fckeditor enabled (embedded into page), everything works fine if the article contains no
tag. But, if it has the misfortune to contain this drupal teaser break point, everything goes haywire. When opening an article for edit, as the page loads, one can see for a fraction of a second that both split fields are correctly loaded with teaser and body, then the fckeditor loads and replaces the body field, loading all its text (which is, of course, the text *after* the teaser) and the upper part of the split field (that is, the teaser text) becomes somehow "masked" by the fckeditor and thus uneditable. Worse yet, when the page is saved, the teaser part is simply discarded and lost with only the body part being saved, which essentially makes the use of fckeditor totally impracticable.
Any help (or even any ideas) on resolving this issue will be appreciated.
-- mitek
Comments
Comment #1
mitek CreditAttribution: mitek commentedJust found another detail which may clarify the issue: in my configuration, I used the option of "Default state" as enabled and "Show disable/enable rich text editor toggle" as false, so that the user is forced to use the editor as the only choice. I just noticed that if the option "Show disable/enable rich text editor toggle" is true (so the initial document opens in the split field, and the user switches to the editor by clicking on the link below), the problem cannot be reproduced. I guess, it only appears when the fckeditor autoloads the teaser/summary on the page load.
Comment #2
mitek CreditAttribution: mitek commentedIt's definitely a bug, not a major one, but still. A mere absence of "Switch to plain text editor" option under the editor field makes the editor go haywire on the
tag in the split view, when loading a document that has a break-split teaser/body structure.
Comment #3
wwalc CreditAttribution: wwalc commentedBefore going any further, could you confirm that this bug still exists in 6.x-1.x-dev?
(remember to clear your browsers cache after upgrading FCKeditor module.)
Comment #4
wwalc CreditAttribution: wwalc commentedUps i missed that one important part:
I confirm that this is a bug.
Comment #5
wwalc CreditAttribution: wwalc commentedComment #6
pobster CreditAttribution: pobster commentedhttp://drupal.org/node/240608
Not so fixed... The jquery looks for a value which isn't there for comments and so returns a browser error...
Removing the fix here; http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/fckeditor/f... and the problem goes away...
Pobster
Comment #7
wwalc CreditAttribution: wwalc commentedCheck the latest relese: 6.x-1.2-1 (hopefully it works this time).
Comment #8
pobster CreditAttribution: pobster commentedAwesome, yep thanks works just fine.
Pobster
Comment #9
iva2k CreditAttribution: iva2k commentedThere is another problem that remains...
I installed the latest FCKEditor (Version 2.5) and Drupal-6.1 fckeditor.module (drupal-6-x-1-2.1). If you start editing a node with a teaser or create a new one with <!--break-->, then click to "Switch to plain text editor" and then back "Switch to rich text editor", the teaser disappears. Clicking "Switch to plain text editor" or submitting the node loses its teaser part for good. I guess another bugfix may be required.
--Ilya
Comment #10
wwalc CreditAttribution: wwalc commentedComment #11
wwalc CreditAttribution: wwalc commentedHmm I can't reproduce #9.
When I click "Switch to plain text editor" I get two textareas, when I click on "Switch to rich text editor" those textareas are translated into
<!--break-->
again.Comment #12
florisla CreditAttribution: florisla commentedCan't reproduce #9 either. This is on Drupal 6.2 with a freshly installed fckeditor module 6.x-1.2-1 and FCKeditor 2.6.
Comment #13
Dubs CreditAttribution: Dubs commentedI still have the following problem with Drupal 6.2, FCKModule 6.x-1.2-1, FCKEditor 2.6: -
If you need any more info, please let me know and I will happily post it...
Comment #14
bradleyvance CreditAttribution: bradleyvance commentedI have two separate sites running FCKeditor and on one I have the same issue as #13, but on the other no problem at all.
I'm wondering if its a conflict with other modules, or general drupal settings rather than something inside FCKeditor. I'm going to set up a test site locally and see if I can have any luck figuring this out.
edit:After some preliminary testing it seems to be a problem when using a custom content type. When I use the standard "story" node it doesn't lose the teaser. I'll see if I can track it down even further.
edit 2:Okay, so I was able to track it down to a 2nd FCKeditor field in my content type. I had a custom text field that was also using the FCKeditor, but once I disabled FCKeditor from that custom text field the teaser worked fine. Obviously this isn't a solution to the problem, but for me its livable.
Comment #15
wwalc CreditAttribution: wwalc commentedI need a detailed list of steps to reproduce this or at least link to a site where I can look at this, tried custom content types with a couple of text fileds mixed with other types and couldn't observe similar issue.
Comment #16
JacquesBopp CreditAttribution: JacquesBopp commentedI have exactly the same problem as described in #13 (teaser is discarded). The problem exists since I installed FCKeditor and is independent of the installed version (currently 6.x-1.3-beta). When I configure FCKeditor with 'Editor appearance' "disabled" and 'Show disable/enable rich text editor toggle' "true" and I edit a document with rich text editor switched on everything works fine and the teaser doesn't disappear. But as soon as 'Editor appearance' is "enabled" and I save the document or switch from rich text editor to html text editor the teaser is discarded again.
Additionally the bug depends on the content type. If it's a custom type, it doesn't happen.
If you want to login to my site to reproduce the bug, please let me know and I give you a user name / password.
Comment #17
andypostUnder IE I got different problem:
1) FCK profile:
Default state - Enabled
Show disable/enable rich text editor toggle - Disabled
2) Put 2 or more paragraphs of text
3) Insert teaser-break after first paragraph
4) Show summary in full view - checked
5) Push Preview
Preview of full version holds dubbed teaser and editor holds two teasers.
Suppose this all caused/depends by hiding toggle settings
Comment #18
wwalc CreditAttribution: wwalc commentedTargeting to 6.2: #277657: TODO list for 6.x-2.x and 5.x-3.x.
Comment #19
Jorrit CreditAttribution: Jorrit commentedThe loading code has been rewritten completely and the teaser case has specifically been tested and works now.
Comment #20
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #21
Renee S CreditAttribution: Renee S commentedOk, so here's a trick - if I have FCKEditor turned on, I don't get the "Split summary at cursor" button, although I do see the "Show summary in full view" check-box. When I switch to the rich text editor, the button appears; switch back, it disappears. Is this a bug?? I shouldn't expect my users to understand this and switch to rich text just to create a summary....!
Comment #22
Renee S CreditAttribution: Renee S commented(btw, I'm using 6.4 with the latest release of FCK and the FCK module)
Comment #23
wwalc CreditAttribution: wwalc commentedIssue posted in comments #21 and #22 is discussed in #303726: Split summary at cursor not showing up.
Comment #24
Renee S CreditAttribution: Renee S commentedYeah, sorry!!
Comment #25
origaman CreditAttribution: origaman commentedI've got a similar problem with 6.x-1.3-rc1 and fckeditor 2.6.3: If "Switch to plain text editor" is disabled, nodes with teaser breaks are saved strangely:
Comment #26
yang_yi_cn CreditAttribution: yang_yi_cn commentedexactly the same problem with #25
Comment #27
Steve Dondley CreditAttribution: Steve Dondley commentedThis problem had reared its head again for me. I thought I had fixed it.
Comment #28
wwalc CreditAttribution: wwalc commentedComment #29
wwalc CreditAttribution: wwalc commentedHow could I missed that? Arrgh
Anyone willing to give a try the latest version of fckeditor.module? It can be downloaded here:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/fckeditor/f...
The whole module will be available tomorrow as a dev release.
Marking as fixed, but I'm not 100% sure if that will work out in all configurations, please post your comments after you test it.
Comment #30
florisla CreditAttribution: florisla commentedThree days ago I updated Drupal to 6.5, fckeditor .module to 6.x-1.3-rc1 and fckEditor itself to 2.6.3.
This combination had the bug as described by origaman above in #25.
Now I updated to fckeditor.module 6.x-1.3-rc3 and the issue is gone.
Thanks!
Comment #31
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.