If I add new text in an existing page or blog page or any document using CFEditor it doesn't get saved. New pages are created correctly tough.
I found out that when adding text to an existing page I can get the changes to be saved after:
- Hit preview page and then click save.
- Show source and then go back to rich text view.
- Enable "Disable rich-text" and the save and/or switch back and save.
I tried uninstalling/reinstalling etc. but nothing seems to work.
If you need more information, let me know.
Comments
Comment #1
twodAre you using any AJAXifying (or other 'script heavy') modules which may change how the form is submitted?
Are you using a custom theme, and does it work with Garland?
Are there any JavaScript errors?
Comment #2
takens commented>>Are you using any AJAXifying (or other 'script heavy') modules which may change how the form is submitted?
Yes I use JQuery menu and AJAX modules.
>>Are you using a custom theme, and does it work with Garland?
I use the Barlow theme, obviously it seems not to work with Barlow. I'll try the default theme and report back.
>>Are there any JavaScript errors?
I haved seen any while using the website. Firebug allso doesn't produce any errors.
Thank you for you're reply and if you need more info or things to get checked out I'll be happy to supply the needed info.
Comment #3
takens commentedI can now say that theme Barlow is the one that causes the problems, Garland works just fine.
Tahnx for you're help, guess I have to write the 'Barlow man" a message ;-)
Cheers
Comment #4
sdiener commentedI am having this same issue. The change that I recently made was to copy the garland theme files into the sites/all/themes folder and rename it so that I can create my own custom theme...but I hadn't made any changes to the theme yet. Using rich text editor (I am using FCKEditor) I tried to make a link into a button. It didn't work, so when I went back to remove the changes and hit save, the page came out the same. I cleared the cache, and tried again, still after multiple tries, the page is the same. Can anyone suggest a fix?
Comment #5
twod@sdier, please answer my questions in #1, otherwise I can't be sure if you are also using the AJAX module or if using the [original] Garland theme works in your case.
Does this only happen when you edit nodes or does it also happen when creating new nodes?
Comment #6
nilsja commentedI'm using the standard Garland theme and no other heavy ajax module. The only modules i added are views, cck and CKEditor. I can't figure out how to save sth with CKEditor. It does not work for preview and not for save.
Actually it is only the case for pasted code. Something i type in manually is being saved correctly. Pasting als clear text sometimes works. But not from word...
Comment #7
sdiener commented@TwoD
Hi, I had this problem once before but thought it was related to the way I had set up my front page. Anyway, I am using Drupal 6.14 with the following additional modules downloaded and enabled (though I don't think I have used them all...): Views, CCK, FCKEDitor, devel, color, css_injector, filefield, imagecache, imagefield, imce, pathauto, token.
I am not using Ajax or jquery.
I copied Garland into the sites/all/themes directory in order to customize it, but hadn't changed anything yet. I did have this issue once before and had left it unresolved. It doesn't happen on all pages. I just started a new page and saved it, then went in and edited it, and it worked fine.
I am a newbie...would a javacript error pop up somewhere if there was one?
Now, for a bit more detail...I mistyped above...I used the plain text editor to try and add a button as a link to my page right before this happened. I didn't code it correctly, and the link did not work. When I went back in to remove the button and put the html back the way it was before, it now will not save. I have tried changing the html by hand with the plain text editor and by using the rich text editor...no success either way. This document that I was editing was actually a book page.
I was using Garland as default when I originally put the content in and had the same problem with another page (the home page, using page node).
I hope this gives you enough information!
Comment #8
sdiener commented@TwoD--more info
I just disabled my "custom theme" and went back to Garland...and I still can save edits on this page I am talking about.
Comment #9
twod@sdiener, you list "FCKeditor" as a module you have installed. If this is the Drupal fckeditor.module, then please uninstall it. It will conflict with Wysiwyg module and you only need the FCKeditor library from http://ckeditor.com/download.
JavaScript errors would show up in the console if you're using Firefox (Ctrl+Shift+J) or if you're using IE there's a small icon in the lower left corner of the statusbar which you can click.
The contents of the page should not cause conflicts with Wysiwyg module itself or FCKeditor unless something is really wrong with it.
It's interesting that the edited contents are not saved when not using an editor as that either indicates this problem is not caused by Wysiwyg (it runs almost no code in that case) or that the editor was not properly disabled. An improperly removed editor instance may catch the browser's submit event and take it as a cue to sync the editor contents back to the original textarea (effectively overwriting your manual changes with the original text again).
We had this problem with FCKeditor earlier, but only in IE and we fixed that in Wysiwyg 2.1.
Is this problem happening in just certain browsers or in all of them?
Comment #10
sdiener commentedHi, so far the error has only happened in Internet Explorer 8.0, because that is all I have been using. So I need to uninstall the fckeditor...and download just its library? I never did disable any editor when I added and enabled the fckeditor...could that be causing the issue?
Comment #11
sdiener commentedJust for more clarity...I just used the link "switch to plain text editor" that appears under the body field when adding my edits to the page.
Comment #12
sdiener commentedAlso, if I uninstall the fckeditor, will it undo all of the formatting changes I have made with it? I have a significant amount of content on the site...
Comment #13
twod(Sorry if you've already got the hang of this, but it sounds like you've got fckeditor.module confused with the FCKeditor library) Wysiwyg module is a compatibility "wrapper" around a bunch of third-party editor libraries, just like FCKeditor.module is a wrapper around just the FCKeditor library. Drupal's Wysiwyg.module and FCKeditor module are incompatible because they try to do the same thing and you only need one of them. Regardless of if you use Wysiwyg module or FCKeditor module, you also need the FCKeditor library files (where to put them depends on which module you use).
If you've used FCKeditor via Wysiwyg module, removing the editor profile or the library itself will not affect your contents at all.
If you've used FCKeditor via the FCKeditor module, the actual contents won't be affected but you may get styling problems when viewing the nodes because fckeditor.css from the sites/all/modules/fckeditor folder is no longer included on all pages via
hook_init. You can fix this by including the styles from fckeditor.css in your theme's stylesheets.If you're still seeing these problems and you don't mind me poking around a bit on your site, I think I would need access to create content on a site where this happens (a test/sandbox site is perfectly fine if you can reproduce the issue there), as I'm not able to reproduce this on my sites. You can use the contact form on my profile if you want to send account information.
Btw, you can edit your replies to fill in informaton, no need to make multiple replies in a row. ;)
Comment #14
sdiener commented@TwoD
First of all, thank you for sticking with me here, and sorry about the multiple replies. I see the edit now! My site is on my local machine at the moment, so it might be difficult to access. I don't mind you poking around at all if it can be set up.
I never installed the Wysiwyg module...I only used what came with Drupal core at first. I installed FCKeditor in order to be able to make my content look better without having to write a lot of HTML. I don't believe I ever downloaded the FCKeditor library...I am going to try that and see what happens.
I am truly confused and find myself a bit stuck at the moment, so no need to say you are sorry! Thanks again...I will post an update if I make any progress...or don't. I went to the link you gave me to the CKeditor library...so this is not the module? Just the library? I guess I am confused.
Also, it seems that I may have "broken" just that page, as I have not been able to replicate this error on any other page...so far so good with editing and saving. Is it possible that by putting some bad html code in there I could have broken it? In this case, would I delete the page and start over?
Comment #15
twodIf you installed the Drupal FCKeditor module, you must also have installed the FCKeditor library from fckeditor.net (ckeditor.com now, see below*) as it would not function without it. The FCKeditor library is the actual editor and it can be used "as is" on any site if you install it manually. The Drupal FCKeditor module and Wysiwyg module try to simplify this a great deal by sitting in between the editor and Drupal, taking care of much of the installation and configuration behind the scenes. As both these modules do the same thing, they can't be used together or both will try to include the same library files on your pages.
*Yes, the link I posted goes to the CKEditor site as CKEditor is the successor of FCKeditor, and it hosts the actual editor library. But you can still get the FCKeditor library from their download page (btw, CKEditor library is also supported by Wysiwyg and is a much nicer editor IMHO). I should have been more clearer about this.
I do not think it's possible to break a page by including "bad content", because the editors and Wysiwyg module try to isolate this content as much as possible to not interfere with themselves or other scripts etc on your site, while it's inside the editor. What happens after the contents have left the editor is a different thing though. The content is stored the same way it was output from the editor (what you see if you "disable rich text" in the database, then that content is put through the input filters before actual "rendering" each time a page is viewed.
If you manage to get your server to listen to external connections (mind blocked ports in firewalls etc), drop me a line in the contact form and I'll take a look. =)
Comment #16
sunLooks like this is resolved.
Comment #18
sdiener commentedNot resolved. Gave up, been out of town. Working internally to get access to my local machine for you.
Actually, I just turned off the Devel module, which was the last one I installed before I started having this problem (actually not devel itself but devel generate, devel node access, performance logging, and theme developer, and voila! I can save again. Could this module have been causing some sort of conflict?
So I guess it is resolved but I still don't know why it was happening.
Comment #19
serialbob commentedHello,
I have the same problem.
I use Framework template for admin, with the admin module (http://drupal.org/project/admin).
I need to copy the content, CKEditor disabled, to save my content.
Thanks for your help.
Comment #20
twodIf you wish to reopen an issue, please change its Status to active (or a more suiting status, depending on the issue) or we might not notice it when browsing the queue.
This does sound like a different issue though (possible module conflict), so I would highly recommend creating a new issue.
For the record, I just tested Admin 6.x-2.0 with Wysiwyg 2.x-dev and CKEditor without any problems.
If the content in the original textarea look alright when disabling the editor, the editor itself (and most likely Wysiwyg module as well) are working as they should. Editors are disabled right before submit as well, so what you see in that textarea is what will be submitted to the server. However, if you are using an "AJAXifying" module where forms and content will be submitted in the background, it's quite possible that both Wysiwyg module and the editor misses this (as there's no proper mechanism to work with this in D6). That would leave the original textarea empty (or whatever state it was in before the editor was initialized) when the form submits because the editor has not yet updated it.
Comment #21
sun@TwoD: Didn't find you on Skype nor Twitter nor Facebook, so... http://drupal.org/forum/13854 :)
Comment #22
serialbob commentedHello,
I have the same problem.
I use Framework template for admin, with the admin module (http://drupal.org/project/admin).
I need to copy the content, CKEditor disabled, to save my content.
Thanks for your help.
Comment #23
twodUmm, you posted the exact same question five days ago, see my answer in #20.
Comment #24
sun#18 already stated that the Theme Developer module is the cause for this bug.
Comment #25
sunComment #26
Odd Hill commentedThis is currently happening to me as well. We just installed Wysiwyg and CKeditor on a site. I could edit two nodes (same node, but translated) but the third node couldn't save any changes to the textarea. After almost going mad I eventually tried turning off the CKEditor on that particular field - and only then could I save the content. There are three other textareas on that same node that all use CKeditor - however, I didn't have those turned off when I eventually could save.
Devel theme is not activated.
Comment #27
twodIf you can turn off the editor [completely] for one field only (and you didn't mean by clicking the "Disable rich-text" link below it, you're using the ckeditor.module for that field. These two modules are not compatible, as mentioned earlier.
If you aren't using ckeditor.module, maybe another script does something to that particular field which could interfere with the editor detaching from it?
Please change the issue status back to "active" if this isn't resolved.
Comment #28
Odd Hill commentedWe are not using the module CKeditor, we are using Wysiwyg module + the CKeditor downloaded from the official website.
Comment #29
twodOk, just had to double-check.
For this third field, are the contents edited with CKEditor properly synced to the textarea when disabling the editor?
Do any JavaScript errors appear when disabling the editor or when submitting the form with the editor enabled?
This may be hard to see if the error console is cleared between page refreshes, but tools like Firebug for Firefox have an option to save logs until manually cleared.
Have you tried Wysiwyg 6.x-2.2 or 6.x-2.x-dev?
Does this happen in just one or several browsers?
Which exact version of CKEditor are you using? (3.5 was recently released and is supported. Wysiwyg 6.x-2.x-dev also includes additional support for the new iFrame plugin.)
Comment #30
sunSorry, without further information this issue can only be closed as not reproducible.
Feel free to re-open this issue if you want to provide further information. Thanks.