[wp-trac] [WordPress Trac] #32278: Preview button opens multiple tabs if preview post contains a tinymce

WordPress Trac noreply at wordpress.org
Thu May 7 05:32:53 UTC 2015


#32278: Preview button opens multiple tabs if preview post contains a tinymce
--------------------------+-----------------------------
 Reporter:  elliotcondon  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  4.2.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi guys,

 Here's an odd one for you.

 If a tinymce instance exists when viewing a post (perhaps in the post's
 comment form), clicking the 'preview' button for this post (whilst
 editing) will create a new (browser) tab instead of updating just the one
 (browser) tab as expected.

 It seems that enqueuing the tinymce scripts is fine, just when the tinymce
 is instantiated does the problem exist.

 I've taken a look but can't find any reason for this, the post.js
 #preview-post event seems simple and would not be affected by a tinymce
 editor.

 Perhaps the newly created tinymce instance is removing some sort of global
 'target' that the form uses? I don't know...

 In no way is this an important issue, but perhaps this may come up in the
 future, and I just wanted to provide some info about it.

 Thanks
 E

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32278>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list