swiching from fckeditor to plain text editor, text disappears

jannalexx - January 7, 2009 - 02:29
Project:FCKeditor - WYSIWYG HTML editor
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Jorrit
Status:closed
Description

switching between fckeditor and plain text editor makes content disappear from both
if previously saved in database, or previewed, only previous saved version appears

#1

wwalc - January 20, 2009 - 09:51
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.

#2

jannalexx - January 26, 2009 - 15:09

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

#3

wwalc - January 28, 2009 - 12:28

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!

#4

thepiano - June 22, 2009 - 14:34

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!

#5

geniekids - July 6, 2009 - 09:31

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!

#6

Jorrit - July 7, 2009 - 17:02

Are there any Javascript errors?

#7

geniekids - July 7, 2009 - 20:34

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

#8

Jorrit - July 8, 2009 - 08:20

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

#9

geniekids - July 8, 2009 - 14:24

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.

#10

Jorrit - August 5, 2009 - 18:55
Assigned to:Anonymous» Jorrit
Status:postponed (maintainer needs more info)» fixed

Fixed in 6.x-2.x-dev

#11

System Message - August 19, 2009 - 19:00
Status:fixed» closed

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

#12

jseffel - August 25, 2009 - 07:58
Status:closed» 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)

#13

Jorrit - August 25, 2009 - 18:20

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

#14

jseffel - August 26, 2009 - 06:40

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.

#15

geniekids - August 27, 2009 - 12:15
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

#16

Jorrit - August 27, 2009 - 12:16

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?

#17

geniekids - August 27, 2009 - 20:09

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

#18

jseffel - August 28, 2009 - 06:46

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

#19

Jorrit - August 28, 2009 - 13:27

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.

#20

jseffel - August 31, 2009 - 06:38

Tested in Firefox 3.0.13 and Opera 9.64. Works!

#21

geniekids - August 31, 2009 - 16:12

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

#22

Jorrit - September 2, 2009 - 06:35
Status:active» fixed

#23

System Message - September 16, 2009 - 06:40
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.