When I have content containing images or flash (swf) [uploaded via CFinder] and I want to edit this content again it's not in the textarea anymore. I checked also with appearance-settings to "default > deactivated", then the plain code is in the area but when switching to rich text editor, it's gone again.
This only happens whe editing, the first time I set up the content it works perfect but when I want to edit the block or pane, it's gone. It also only happens with media, when I have plain text it's no problem.

Any solutions to this?

Comments

cduwe’s picture

Exactly the same as described above.
Drupal 7.9
CKEditor1.6

I've tried disabling all other modules and CKEditor is the culprit. Here's the content in block body field:

<p><img alt="Join our network" src="/sites/default/files/ill_join_our_network_01.png" style="width: 440px; height: 353px; " /></p>
John_B’s picture

I have the same problem on one of two sites where I am using 7.x-1.6. When re-opening an item of content where there is content, the ckeditor window appears empty. Switching to plain text the box is once again empty. Following a 'save' the content is lost. Until this is fixed ckeditor is unusable. EDIT 'just trying WYSIWYG module with ckeditor. So far it works, which suggests there is something with the module rather than the ckeditor itself. Also found nothing on the ckeditor support forum; nothing on Drupal log.

pietrocap’s picture

Version: 7.x-1.x-dev » 7.x-1.6

I have the same problem.

johnv’s picture

I had the same problem, and I think I solved it by changing the language settings of the field.
- what is the language of the field, ( using phpmyadmin e.g. 'table field_data_body' , field 'language') ?
- what is the language of the Node type?
- how is 'Multilingual support' of the node type set?
- what is the translation-settign of the field? In phpmyadmin: table field_config, field translatable;
You can set the data when enabling Entity_transation module. Under field settings you'll find a setting 'Users may translate this field.'
IMO you have problems when the Node is not translatable, and the Field is translatable.
The release notes of D7.8 give more details on this topic, and a conversion script.

cknoebel’s picture

I see it also. I'm using D7.10, ckeditor-7.x-1.6, imce-7.x-1.5, jquery_update-7.x-2.2 and ckeditor library v3.6.2.7275. I place an image in the body field using IMCE, the image appears on the page when saved, when I return to edit it the image has disappeared from the body block. If I had added text within the body field, the image did not disappear. I tried messing with text formats but couldn't get it to work. When I installed WYSIWYG and IMCE Wysiwyg API bridge, this problem did not occur.

I'm a fan of the ckeditor module. I'd love to see this fixed so I can return to it for my D7 sites.

cduwe’s picture

My issue seemed to be related to other Javascript on the page. In particular once I removed the jQuery tools (tooltip, flashembed) things started working better.

Sarah_G’s picture

I am having this same problem since I updated CKEditor from version 6.x1.8 to 6x.1.10. I think this issue is also the same #1332800: modifications disappear from rich text editor to plain text editor or after registration. When I go to edit a page that has images or formatting (headings and links) all of the code is stripped out. It just leaves plain text and a break where the images used to be.

Sarah_G’s picture

In 6x - 1.10 if I uncheck all of the boxes in the CKEditor Profile Security fieldset then this is no longer a problem. Seems not safe but since all of my contributors that have CKEditor access are trusted authorized users I think I will be okay. (I have taken CKEditor access away from anonymous users.) -- It's unclear to me how these settings work with input filters like HTML Purifier or WYSIWYG Filter and when security issues come into play. Better documentation about these concerns and how these filters work would be beneficial. Thank you.

mkesicki’s picture

@Sarah_G this issue is about 7.x version and you wrote about 6.x version.
Please write in 6.x thread.
Yesterday new readme file was added to repository for drupal 6 & 7 versions. It is in DEV version of module.
In readme there is explanation about filters.

Agitaous11-1’s picture

Priority: Normal » Major

# Pardon Me, I thought I was under Drupal 6.

dczepierga’s picture

Status: Active » Closed (fixed)

Pls try to update to last DEV version (Drupal 7) of CKEditor module - there was change of sceurity filters polcy and now their depend on confifuration of filters in input format.
When u're using Filtered HTML with filter "Limit allowed HTML tags" and it's strip to much tags/options pls try to install WYSIWYG Filter, disable "Limit allowed HTML tags" and enable (configure before) WYSIWYG Filter. After this everything should works as u expect.

If it doesnt help and u will have still problem with it in Drupal 7 pls reopen this issue.

Greetings

int_ua’s picture

What commit was that?
I'm using CKEditor with WYSIWYG module and having the same issue. I've created nodes programmatically with my own code. Will add more details later, waiting for a commit ID.

mkesicki’s picture

i3webmaster’s picture

I am having a similar issue -- my content isn't totally disappearing (fine on front-end) but does not appear in the rich editor when editing the post.

I can use the CKEditor to add an image, and the file upload and server browser widgets work fine, the image inserts fine, I can add images with editor and edit them.

Then I hit save/publish to save the page.

The image is there in the post when viewing the front-end.

But when I go back to edit the page...

The image doesn't show up in the rich text editor at all. If I switch to viewing the source, the img tag is there and it has src, alt and style attributes with no quoting issues (and parses fine as HTML on the front-end).

If I save again, the image will still be there; the problem is that I cannot ever edit it again using the rich text editor -- only when I initially upload it can I change it's alignment, src, dimensions, alt prop, etc.

I don't think this is an issue with security filters, as I'm using "config.allowedContent = true" which as I understand allows all tags. Also, since the tags and attributes aren't being stripped out or rewritten, it's probably not a filter. It's more of the CK Editor not rendering the image inside the rich editor when it's already been saved.

Also, there are no javascript errors in console when this happens.

Any ideas would be greatly appreciated!

[EDIT]
Sorry, maybe this isn't precisely the right issue to comment on -- I'm using ckeditor 1.13 not 1.6, but it looks to me like the same issue that was closed before...
[/EDIT]

Cheers