[wp-trac] [WordPress Trac] #24946: Missing TinyMCE ed.onMouseUp event in Wordpress 3.6

WordPress Trac noreply at wordpress.org
Sun Aug 4 19:22:28 UTC 2013


#24946: Missing TinyMCE ed.onMouseUp event in Wordpress 3.6
--------------------------+------------------------------
 Reporter:  bmodesign2    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  3.6
 Severity:  normal        |  Resolution:
 Keywords:  close         |
--------------------------+------------------------------
Changes (by azaozz):

 * keywords:   => close


Comment:

 Image resizing works differently in the different browsers in
 contenteditable mode:
 - WebKit and Opera don't resize images at all. TinyMCE can add it but is
 turned off by default in WordPress.
 - Firefox has built-in resizing that can be turned off by adding
 `'object_resizing' => false,` to the TinyMCE init options. Note: this will
 also turn off resizing of tables.
 - IE has built-in resizing that cannot be turned off.

 The built-in resizing in IE and Firefox is not controllable from JS. What
 events are fired and when depends on the browsers. I see 'ed.onMouseUp'
 fired in both IE and FIrefox but with different target elements depending
 on which direction the user is resizing the image. Perhaps try this in
 your plugin:
 {{{
 ed.onMouseUp.add( function( editor, event ) {
     console.log( event.target.nodeName );
 });
 }}}

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


More information about the wp-trac mailing list