I am having a major issue and do not know how to fix it, I thought at first it was just Firefox not being able to submit changes but it turns out that Safari and Chrome also do not let me know submit changes. I can make changes in IE just fine. Does anyone know how to fix this? Is it a system site issue on my end or is it a browser bug, I would really appreciate any help.

Comments

cog.rusty’s picture

Can you be more specific? Changes to what?

cabplan’s picture

Every time I go to edit a simple webpage in my drupal site none of the changes get saved if I use FF, Safari or Chrome. When I used IE everything gets saved with no problems. Other things I have noticed that happens on all browsers when I go to edit a webpage, it duplicates the first couple of paragraphs at which point I have to delete that duplicated content. Even more annoying is when I make edits using IE and I add an image and try to align it left or right, it shows it correct in the editor but when I save it and preview it, it does not look the same. The editor adds a weird:

at the top of every content box and instead of using Only local images are allowed. it uses style="float:right". How do I get my CKeditor to stop inputting that type of style code and have it stop inserting

code. Do you think this browser issue is from my CKEditor?

cog.rusty’s picture

There seem to be some info in the issue queues

http://drupal.org/node/741572 (ckeditor module - there is a patch, not sure if it got in yet, or click preview two times and then save! not sure if you need to do something with your feet too)
http://drupal.org/node/618164 (ajax module and their wysiwyg plugin)

cabplan’s picture

Thanks for letting me know about all of this, after reading through, I am still confused on exactly what to do. I tried downloading a file that they indicated and replace the old javascript file in ckeditor/includes file folder but that did not work. I also saw a patch:

? ckeditor-741572.patch
Index: includes/ckeditor.utils.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ckeditor/includes/ckeditor.utils.js,v
retrieving revision 1.1.2.12
diff -u -p -r1.1.2.12 ckeditor.utils.js
--- includes/ckeditor.utils.js 22 Mar 2010 18:30:18 -0000 1.1.2.12
+++ includes/ckeditor.utils.js 8 Apr 2010 14:10:21 -0000
@@ -270,6 +270,10 @@ if (typeof(Drupal.Ajax) != 'undefined' &
for (var i in CKEDITOR.instances)
CKEDITOR.instances[i].updateElement();
}
+ if ( hook === 'complete' && typeof(CKEDITOR.instances) != 'undefined' ) {
+ for (var i in CKEDITOR.instances)
+ CKEDITOR.instances[i].setData($('#'+i).val());
+ }
return true;
};
}

but not sure how to apply this to the javascript file i just download. Please let know the steps to fix this.

cog.rusty’s picture

To apply this patch manually,
- open the ckeditor/includes/ckeditor.utils.js file with a good text editor (not Notepad),
- add the 4 lines which are marked with a + in front,
- and save it.

The other lines are there just to show you where exactly to add the + lines in the file.

cabplan’s picture

Ok here is my code in my ckeditor/includes/ckeditor.utils.js file. Is this correct?

/**
 * Ajax support #741572: CKEditor is incompatible with the Ajax module (?). When using Firefox text is not saved when clicking on Save button - URGENT
 */
if (typeof(Drupal.Ajax) != 'undefined' & for (var i in CKEDITOR.instances)
         CKEDITOR.instances[i].updateElement();
     }
    if ( hook === 'complete' && typeof(CKEDITOR.instances) != 'undefined' ) {
      for (var i in CKEDITOR.instances)
       CKEDITOR.instances[i].setData($('#'+i).val());
    }
     return true;
   };
 }

FF, Safari, and Chrome still do not work

cog.rusty’s picture

The code looks correct, but if it doesn't work I have nothing better to suggest than what they are saying in those threads.

Is what they say true about clicking "Preview" twice and then saving?
Do you also have the ajax module installed?

cabplan’s picture

Ok if anyone is still having this problem, and you do not have ajax module, u need to download that.

cabplan’s picture

I HAVE LIED, ITS STILL DOES NOT WORK. It worked once and now it does not work again in Firefox, Safari or Chrome but does work in IE. Does anyone know why this is happening, it is becoming quite a headache.

vm’s picture

please do not create duplicate nodes asking the same question. Thanks

Duplicate node deleted.

cabplan’s picture

I am posting multiple times because I am not getting a solution and am getting very frustrated with Drupal. Either was working fine with FCKEditor and then they stopped supporting it so I got CKEditor and now Firefox, Safari and Chrome do not save any Edits I make and I do not know how to fix it.