When you add Media to your textarea through CKEditor, the Media dialog box appears. After you upload your image, and click Submit, it takes you to a second dialog window where you can specify ALT and Title tags and other things. When you click Submit on that dialog, it takes you to a third dialog window for the final confirmation.

On that 3rd dialog window, the template does not seem to be loading correctly. The background is different (displays a repeated patter instead of the white seen in the first 2 dialogs), and the Submit and Cancel appear as links, not buttons.

Looking at the source, it seems that the CSS ID #media-browser-page does not include the form on this 3rd dialog, as it does for the other first two dialog windows.

The first two dialogs use this type of HTML to render the buttons:

<div id="edit-actions" class="form-actions form-wrapper">
<input type="submit" class="form-submit" value="Next" name="op" id="edit-next">
<a class="button button-no fake-cancel upload jquery-once-2-processed" href="/en">Cancel</a>
</div>

But, this third dialog uses this:

<a class="button fake-ok">Submit</a>
<a class="button fake-cancel">Cancel</a>

Comments

sylus’s picture

Priority: Normal » Major

Marking this as major as is a significant regression when trying to save media on the last screen.

elijah lynn’s picture

Yeah, I am having a lot of issues with this with the module I maintain called Sticky Edit Actions. It normally uses a form alter to add a class but the way these buttons are created makes it not possible to use a standard Drupal way.

This needs to be reworked somehow.

elijah lynn’s picture

We should actually close this and go to #1558042: Refactor Views plugin code as a form rather than raw html. I think that would fix this issue.

sylus’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)