[wp-trac] [WordPress Trac] #21390: Upload/Insert media revamp

WordPress Trac noreply at wordpress.org
Thu Nov 8 10:22:43 UTC 2012


#21390: Upload/Insert media revamp
----------------------------+--------------------------
 Reporter:  nacin           |       Owner:  koopersmith
     Type:  task (blessed)  |      Status:  accepted
 Priority:  high            |   Milestone:  3.5
Component:  Media           |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+--------------------------

Comment (by tar.gz):

 A few quick observations - let me know if I should open tickets for those,
 or continue reporting here.

 (1) Inserting gallery when cursor isn't in the editing field fails
 silently.

 If we launch the Beta Media UI when the cursor isn't inside the post
 editor field, creating and inserting a gallery will have no effect at all.
 Nothing is inserted.

 The behavior with the old uploader: the gallery gets appended at the end
 of the post.

 We should either display some warning, or keep the old behavior.

 (2) Invisible modifications occur in post content

 When there is a [gallery] shortcode in the post content, it's impossible
 to leave the editor page without a "Are you sure? This page is asking
 you... to confirm" pop-up message. This happens even if the user has
 introduced no changes to the content.

 * This occurs only in the "Visual" editor, not in "Text" mode.
 * This occurs only with gallery shortcodes in the post content.

 (3) Line return modifications occur when switching from "Text" to "Visual"

 Example 1:
 * Create a new post with the editor in "Text" mode.
 * Insert a gallery. The gallery shortcode will be on the first line. It's
 the only content of the post.
 * Enter into "Visual" mode. You will notice an empty line at the top. It's
 impossible to remove it in the visual editor.
 * Go back to "Text" mode. You can observe that a ` ` has been
 inserted on the first line.
 * When the post is rendered on the front-end, this will result in a
 `<p>&nbsp;</p>` on the first line.

 Example 2:

 Enter the following into the "Text" editor:

 {{{
 some paragraph

 [gallery link="post" columns="3" ids="287,286"]

 another paragraph
 }}}

 Switch to "Visual". The result:

 {{{
 some paragraph

 [gallery link="post" columns="3" ids="287,286"]another paragraph
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21390#comment:48>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list