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

wwalc’s picture

Status:Active» Postponed (maintainer needs more info)

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

jannalexx’s picture

it 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

wwalc’s picture

Could 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!

thepiano’s picture

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

geniekids’s picture

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

Jorrit’s picture

Are there any Javascript errors?

geniekids’s picture

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

Warning: Error in parsing value for property 'filter'. Declaration dropped.
Source File: sites/all/modules/fckeditor/fckeditor/editor/skins/default/fck_editor.css
Line: 154

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

Warning: Unknown property 'text-overflow'. Declaration dropped.
Source File: sites/all/modules/fckeditor/fckeditor/editor/skins/default/fck_editor.css
Line: 399

hope this helps in solving the problem
Also pl let me know if i am looking int he right place for the errors

Jorrit’s picture

Those are CSS errors, which are not causing this. Are you using the latest versions of the module and FCKeditor?

geniekids’s picture

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

Jorrit’s picture

Assigned:Unassigned» Jorrit
Status:Postponed (maintainer needs more info)» Fixed

Fixed in 6.x-2.x-dev

Status:Fixed» Closed (fixed)

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

jseffel’s picture

Status:Closed (fixed)» Active

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

Jorrit’s picture

On what form do you get this? And does it happen on all forms?

jseffel’s picture

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

geniekids’s picture

Version:6.x-2.0-alpha4» 6.x-2.x-dev

I 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

Jorrit’s picture

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

geniekids’s picture

I 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

jseffel’s picture

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

Jorrit’s picture

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

jseffel’s picture

Tested in Firefox 3.0.13 and Opera 9.64. Works!

geniekids’s picture

I 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

Jorrit’s picture

Status:Active» Fixed

Status:Fixed» Closed (fixed)

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

emca’s picture

I 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

emca’s picture

I 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

Rix’s picture

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

Jorrit’s picture

Have you tried CKEditor ? (http://drupal.org/project/ckeditor)

Rix’s picture

Switching to TinyMCE fixed it for me.

graveris’s picture

I 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