[wp-trac] [WordPress Trac] #20233: Preview opens in the same window when edit panel was previously another Preview window

WordPress Trac noreply at wordpress.org
Sun Jul 28 22:23:05 UTC 2013


#20233: Preview opens in the same window when edit panel was previously another
Preview window
----------------------------------+------------------------------
 Reporter:  hd-J                  |       Owner:
     Type:  defect (bug)          |      Status:  new
 Priority:  normal                |   Milestone:  Awaiting Review
Component:  Editor                |     Version:  3.3.1
 Severity:  normal                |  Resolution:
 Keywords:  needs-patch easy-fix  |
----------------------------------+------------------------------

Comment (by ippetkov):

 Replying to [comment:3 helen]:
 > I think it's probably as simple as changing the target from "wp-preview"
 to "_blank", if this is indeed a desired change.

 Adding "_blank" to the target would make a new tab appear for every time
 "preview" is clicked.

 I've added a patch which basically uses the post ID as part of the target
 name. Thus every post gets its own dedicated preview tab which will get
 refreshed on subsequent previews.

 Also, entering the post editor will clear the tab's frame name. This is so
 that if a user starts editing post 1 and then begins editing post 2 from
 post 1's preview page, a new preview page gets opened for post 1 instead
 of blowing away their editing in progress.

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


More information about the wp-trac mailing list