Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
switching between fckeditor and plain text editor makes content disappear from both
if previously saved in database, or previewed, only previous saved version appears
Comments
Comment #1
wwalc CreditAttribution: wwalc commentedCould you provide more info about this issue?
I cannot reproduce it using the default Drupal installation and Garland theme.
- does it happen when editing a page or when editing a custom content?
- does it happen in Garland theme?
- does disabling other modules solves this issue?
- ideally, could you try reproducing it on a new Drupal installation? If you can reproduce it on a new Drupal installation with Garland theme and no other third-party modules installed, please let me know which browser are you using.
Comment #2
jannalexx CreditAttribution: jannalexx commentedit happens anywhere when editing a page or when editing a custom content or adding a comment, also in Garland theme
exact behavior:
1.FCKeditor has been loaded
2. write a piece of text in FCKeditor
3. switch to plain text -> the text disappears
4. write a piece of text in empty plain text editor again
5. switch to FCKeditor -> the text is there
6. switch to plain text -> the text is there from now on
for now i didn't find a conflicting module, maybe there is one
same issue in 6.x-2.0-alpha5
Comment #3
wwalc CreditAttribution: wwalc commentedCould you please check it on a fresh Drupal installation without any other modules installed?
Although I always try to reproduce an issue first, it's usually a pain to reproduce similar issues... so it could save me lots of time if I knew whether it is a problem with FCKeditor module or a conflict with javascript from other module.
Thanks in advance!
Comment #4
ThePiano.SG CreditAttribution: ThePiano.SG commentedYes, I am getting this too. I searched in Drupal to see if anyone is experiencing the same issue, and I found this thread.
Jannalexx's sequence to reproduce it is exactly what happened to me as well.
I had created a fresh Drupal 6.12 installation, FCKeditor module 2.0-beta1, and use the default Garland theme.
Same issue.
I realized that this does not happen when I try in the textarea of a create content page. (E.g, I clicked on Create Content > Story, and in the body field, executed the same set of sequences)
It happens though when I try to add a comment to that Story node which I created, and I execute the set of sequences in the comment body.
Hope someone here knows what is going on. Advance thanks to the kind soul!
Comment #5
ratnesh aarohi CreditAttribution: ratnesh aarohi commentedI am facing the same issue - though this has shown up for us just few days back.
Not sure if this problem was always there and we did not discover it - as we may not have clicked on "switch to plain text editor"
or it has started new.
However in my site the problem happens only in CCK fields and not when i use add book page or add forum topic etc.
its happening in ALL CCK fields - ones that we've created new and those which we have been using for more than a year!
Comment #6
Jorrit CreditAttribution: Jorrit commentedAre there any Javascript errors?
Comment #7
ratnesh aarohi CreditAttribution: ratnesh aarohi commentedThe moment i click on EDIT for any CCK built node - i had a whole load of errors (about 8) in Firfox's error console.
Seven instances of the error are the same -
With the line No being different for each error logged - but the message exactly the same
But i got another error -occurring only once which related to text overflow - here is the error message
hope this helps in solving the problem
Also pl let me know if i am looking int he right place for the errors
Comment #8
Jorrit CreditAttribution: Jorrit commentedThose are CSS errors, which are not causing this. Are you using the latest versions of the module and FCKeditor?
Comment #9
ratnesh aarohi CreditAttribution: ratnesh aarohi commentedI am using Drupal 6.13 and FCKeditor - 6.x-2.0-beta1
The only alteration that i have done in FCKeditor is inside Fckconfig.js - have made the follwing true for spell check to work infirefox
FCKConfig.BrowserContextMenuOnCtrl = true;
FCKConfig.BrowserContextMenu = true;
Specifically how or rather where do i look for javascript errors?
i though i could use the javascript console in firefox (under tools) but in my browser it is disabled (though javascript is enabled in browser options.
Comment #10
Jorrit CreditAttribution: Jorrit commentedFixed in 6.x-2.x-dev
Comment #12
jseffel CreditAttribution: jseffel commentedI have the same problem. I just downloaded the dev-version and the problem persists. When I switch to plain text the text disappears, when I try to get the editor back nothing happens and I get the javascript error "A is undefined" (fckeditor/editor/js/fckeditorcode_gecko.js, Line: 33)
Comment #13
Jorrit CreditAttribution: Jorrit commentedOn what form do you get this? And does it happen on all forms?
Comment #14
jseffel CreditAttribution: jseffel commentedI got it on *_node_form on the CCK-textarea fields. Didn't test on anything else, I just wanted to see if the dev-version worked.
Comment #15
ratnesh aarohi CreditAttribution: ratnesh aarohi commentedI upgraded to the dev version - but the problem persists in the CCK fields. In Blogs and book pages the problem is not there - Only in cck fields
Comment #16
Jorrit CreditAttribution: Jorrit commentedI'm not experienced with CCK myself, so could you explain your CCK configuration as well as possible, so I can replicate the problem. Are there javascript errors on the page?
Comment #17
ratnesh aarohi CreditAttribution: ratnesh aarohi commentedI can;t see any javascript error ( i guess they should show up in firefox browser status bar)
CCK i am using (CCK) 6.x-2.5
To replicate the problem - i went to >> add content type
* added a new contetn type "dummy"
* added one text area field with 5 rows - called dummy_try
* Selected Text processing: as Filtered text (user selects input format)
and then saved the field setting.
went to (under create content) >> add new dummy
under the BODY field when i type something and click on "switch to plain text" - it switches properly - text stays
but under the DUMMY_TRY field when i type something and click on "switch on text" - the text disappears.
:-(
What other info would you like me to furnish
Comment #18
jseffel CreditAttribution: jseffel commentedI didnt see the javascript-error in firefox, I had to use Firebug and enabled the javascript-console then I saw it. Otherwise I have the same issue as 'geniekids'.
Comment #19
Jorrit CreditAttribution: Jorrit commentedI have uploaded a fix. You can fetch it from CVS or wait until the -dev.tar.gz is rebuilt this night. I'll leave this ticket open until you can confirm that the fix works.
Comment #20
jseffel CreditAttribution: jseffel commentedTested in Firefox 3.0.13 and Opera 9.64. Works!
Comment #21
ratnesh aarohi CreditAttribution: ratnesh aarohi commentedI did a complete re-install (first uninstalled and then installed from fresh downloads for module as well as fckeditor download) - and it works fine in firefox (and tested in IE8 also). Thanks
Comment #22
Jorrit CreditAttribution: Jorrit commentedComment #24
emca CreditAttribution: emca commentedI did't like this article at all. I think I could dissagree with the main ideas. I won't share it with my friends.. You should think of other ways to express your ideas.
baby shower gifts
Comment #25
emca CreditAttribution: emca commentedI did't like this article at all. I think I could dissagree with the main ideas. I won't share it with my friends.. You should think of other ways to express your ideas.
paskolos internetu
Comment #26
Rix-1 CreditAttribution: Rix-1 commentedHappens to every drupal install I have tried (over 15) and I'm not sure why.
Not just on CCK fields but body content too. Also if I try to upload a photo / file when the page reloads I lose all my text OR formatting.
Real shame.
Comment #27
Jorrit CreditAttribution: Jorrit commentedHave you tried CKEditor ? (http://drupal.org/project/ckeditor)
Comment #28
Rix-1 CreditAttribution: Rix-1 commentedSwitching to TinyMCE fixed it for me.
Comment #29
graveris CreditAttribution: graveris commentedI have uploaded a fix. You can fetch it from CVS or wait until the -dev.tar.gz is rebuilt this night. I'll leave this ticket open until you can confirm that the fix works.
graviravimas lazeriu Vilniuje