Once I've created some content, i see the wysiwyg value in that field

But then if i hit [edit] it seems to be missing from the body in the eitor

wysiwyg_fields looses my media in the body, you can recreate this by

- selecting some media and adding it the body, fill in the title
- hit submit
- now select [edit] and the value is missing

i'm using the default 'article' type and have added wysiwyg-fields to that type

Comments

deciphered’s picture

Title: When editing a node, wysiwyg_fields looses my media in the body » PHP 5.2 causes edit to strip Wysiwyg Field items out

Reproduced, PHP 5.2 is the culprit. Solution coming shortly.

deciphered’s picture

Status: Active » Fixed

So the issue here is that the drupal_json_encode function (which is used as part of the replacement token) inserts spaces (' ') in 5.2, but not in 5.3, which means the token is broken in 5.2.

Fixed and committed.

dgtlmoon’s picture

yup, can confirm that fixed my issues, good work!

Status: Fixed » Closed (fixed)

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