WordPress.org

Make WordPress Core

#21814 closed task (blessed) (fixed)

Insert attachments into the text editor using the new media modal

Reported by: koopersmith Owned by: koopersmith
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.5
Component: Media Keywords:
Focuses: Cc:

Description

We have a new media modal at #21390, but it's not particularly useful unless it integrates into our existing UI. Let's make it work for inserting attachments into the text editor.

Change History (5)

comment:2 koopersmith22 months ago

In [22036]:

BUTTON.

Add a "Beta Media" button to the post editor. Currently, it is only capable of inserting images. Other attachment types and galleries need not apply... yet.

  • Added wp.media.string.image( attachment, props ) for generating an image as a string from an attachment and relevant attachment display properties.
  • Properly localized the gallery workflow.
  • Added Workflow.update(), which closes the modal, triggers an update event, and resets the selection.
  • Added wp.mce.media to manage the various media workflows for editors.

see #21813, #21814, #21390.

comment:3 nacin22 months ago

  • Resolution set to fixed
  • Status changed from new to closed

This needs http://f.cl.ly/items/0R3l3241131I0Z0A3E0G/attachment-details.png. Normally, this screen will be bypassed for the visual editor as you can edit it using the in-editor view, but we need it for a textarea insert.

comment:4 nacin22 months ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:5 koopersmith21 months ago

  • Owner set to koopersmith
  • Resolution set to fixed
  • Status changed from reopened to closed

In [22247]:

Add attachment display settings to the media modal.

  • Add a media view for button groups.
  • Add button dropdown containers.
  • Add a dropdown property to the button media model.

fixes #22206, #21814, see #21390, #21813, #21598.

Note: See TracTickets for help on using tickets.