Editor image dialog only supports contentType "image"

Description

When you go to Blocks - Add new - Text block you will see a tinymce editor. When you insert an image you'll see the Integrated custom plugin for inserting images. This dialog only support the contentType "image" instead of all content types that are based on the Integrated\Bundle\ContentBundle\Document\Content\Image class.

When multiple image content types have been found the Add new button should be a drop down with a list of content types (http://getbootstrap.com/components/#btn-dropdowns). All image content types will be visible, also when the workflow-bundle has been loaded and you don't have access (as in issue INTEGRATED-654, this will be fixed later).

The content types also need to be added to the search filter.

Note: the tinymce plugin is javascript / html, so the content types have to be injected by a tinymce javascript parameter.

Note: there is also a bug which makes the image invisible, but that will be fixed in another issue.

Technical tasks

None

Deployment actions

None

Activity

Show:
Marcel
April 8, 2016, 12:13 PM

test NOK:

  • 'Error occured while loading image' in 'Browse Images' screen

  • When clicking on the blue button 'Upload new image', you are redirected to a new tab and have to login, after login you can upload a new image, that works ok. But you only have inserted a new image in Integrated, there is no linked image to the text block where you wanted to add an image.

  • 'Browse Images' should be called 'Browse images'

Marcel
April 8, 2016, 12:14 PM

Test NOK, re-open, now in progress but unassigned (maybe it should automatically change to status To Do instead of In Progress).

Assignee

Unassigned

External issue ID

None

Client

None

Min. hours

None

Dev hour estimate

None

Fix versions

Configure