[wp-trac] [WordPress Trac] #26540: TinyMCE Paste thinks Firefox 20+ is old version of Firefox

WordPress Trac noreply at wordpress.org
Wed Dec 11 18:33:54 UTC 2013


#26540: TinyMCE Paste thinks Firefox 20+ is old version of Firefox
--------------------------+-----------------------------
 Reporter:  programmin    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  TinyMCE       |    Version:  trunk
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 TinyMCE Paste plugin thinks the latest Firefox 26 is older firefox, and
 only adds a Ctrl+V cleanup handler, where onPaste works all the time.

 This is caused by this line in wp includes
 itnymce/plugins/paste/editor_plugin_src.js:



 {{{
 // Is it's Opera or older FF use key handler
                                 if (tinymce.isOpera ||
 /Firefox\/2/.test(navigator.userAgent)) {
 }}}
 ... and since it thinks it's old Firefox, it only adds keyboard handler.

 Because of this, Ctrl+V and right click paste are inconsistent. Ctrl+V
 doesn't clean up.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26540>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list