Details
-
Improvement
-
Resolution: Fixed
-
High
-
1.7.6, 1.13.0, 2.0.0
-
ezsystems/ezplatform-xmltext-fieldtype version 1.5.0
Description
Currently, while upgrading from eZ Publish 5.4 to eZ Platform, after running the migration script from https://github.com/ezsystems/ezplatform-xmltext-fieldtype (ezxmltext:convert-to-richtext), the embedded images are handled as plain embedded objects. Instead, they should be handled as images, which would allow the Editors to see the miniatures in Admin UI and to choose the images' aliases.
In the database, this is what plain embedded object looks like:
<ezembed xlink:href="ezcontent://52" view="embed"/>
And this is what embedded image looks like:
<ezembed xlink:href="ezcontent://52" view="embed" ezxhtml:class="ez-embed-type-image">
Steps to reproduce
- Create a new eZ Publish installation.
- Create a new Article Content Object.
- Inside of one of the Article's Rich Text Fields, embed an image using "Insert/edit image" button.
- Migrate to eZ Platform using this guide: https://doc.ezplatform.com/en/latest/migrating/migrating_from_ez_publish_platform/.
- Migrate XmlText to RichText (https://doc.ezplatform.com/en/latest/migrating/migrating_from_ez_publish_platform/#321-migrate-xmltext-content-to-richtext).
- Open the Article in Platform UI. You will see that the image is handled as plain embed object instead of an image (for example, there won't be a miniature).
Attachments
Issue Links
- relates to
-
EZP-28767 Create a script to fix embedded images broken after migrating from XmlText to RichText
- Closed