I create a new node and type in a Title and a Body Text.

After Upload an Image, the Content of the Body Field is empty.

CommentFileSizeAuthor
#6 Zwischenablage02.jpg96.46 KBkgc

Comments

bryancasler’s picture

Status: Active » Closed (works as designed)

You have to insert the image into the body. There are other options but I suggest taking a look at http://drupal.org/project/insert

kgc’s picture

I choose a Image on my Computer and klick on Upload. After the Upload the Entered Bod Content is emty.

kgc’s picture

Status: Closed (works as designed) » Needs work
bryancasler’s picture

Status: Needs work » Active

You'll need to add <img> to your allowed tags if you're filtering them.
"admin/config/content/formats/filtered_html"
http://awesomescreenshot.com/0abec93e6

kgc’s picture

StatusFileSize
new96.46 KB

I don't add the Image to the Body Field.

I create a new page. I type in a title and a body text.
Then i choose a Image on my Computer an click on the Upload Button.
When the upload is ready, the content of the Body Field is Emty.

bryancasler’s picture

lyricnz’s picture

Status: Active » Closed (works as designed)

The "body" field is just a bit of text that is part of most nodes. Uploading a file will have no impact on the body, unless you explicitly include it yourself (like some wysiwyg do).

peter panes’s picture

Priority: Normal » Critical
Status: Closed (works as designed) » Active

This is a major bug and should not be closed.

I'm having the exact same problem as follows:

I type content into the body field (with CK Editor). I then upload an image with my SEPARATE image field. Then the Body field is emptied and i have to type out the content again.

This is happening on all my Drupal 7 sites with image field and CK Editor. I haven't tried it without CK Editor yet.

peter panes’s picture

Some more info on this problem:

This only happens when creating a new node, if i edit an existing node, remove the image and add a new one in then the content in the body field is not lost.

Also this problem is only happening for me with CKEditor (7.x-1.1) enabled on the body field.

This could be a CKEditor issue but its certainly the completion of an Imagefield upload that triggers it.

oriol_e9g’s picture

...maybe a javascript interaction with CKEditor?

Can you try using http://drupal.org/project/wysiwyg with CKEditor instead of http://drupal.org/project/ckeditor module?

marcvangend’s picture

Project: Drupal core » CKEditor 4 - WYSIWYG HTML editor
Version: 7.2 » 7.x-1.x-dev
Component: image system » Code

Sounds like something is going wrong when CKeditor is detaching from the text area. Most likely a CKeditor issue rather than Drupal core... Maybe it's related to #1270080: ckeditor issue while ajax submit.

bryanhirsch’s picture

Version: 7.x-1.x-dev » 7.x-1.1
Status: Active » Fixed

I have tried to replicate this issue with three different set-ups and as far as I can tell, this issue is now resolved. I have tried this with:

- a fresh install of Drupal 7.8
- Drupal 7.8 + CKEditor 7.x-1.3
- Drupal 7.8 + CKEditor 7.x-1.3 + Wysiwyg 7.x-2.1

If you're still experiencing difficulties with CKEditor 7.x-1.1 try upgrading, and I think you'll be all set.

I'm re-assigning this issue to CKEditor. I'm pretty sure this is not actually an issue with core, and this might be helpful for people to see in the CKEditor issue queue.

bryanhirsch’s picture

Status: Fixed » Closed (cannot reproduce)
Ed Carlevale’s picture

Issue summary: View changes

Updated issue summary.

stolzenhain’s picture

I'm experiencing the exact same issue, too – with WYSIWYG module and _NicEdit_, so just to confirm that this is obviously not a CKEditor problem.
Edit: Okay, so this is obviously no standard behaviour, but even after shutting down most of the modules, including the WYSIWYG editors, fields are still emptied when images are uploaded on saving the node form – still looking for any hints on this.
Edit 2: Tracked down the problem to the Filefield Paths Module in combination with a Drupal6->7 update and transliteration. I didn't see any errors, because I had turned them off already. The bug seems to wipe all text fields, I guess I found the corresponding issue.

stolzenhain’s picture

Issue summary: View changes

Updated issue summary.