[wp-trac] [WordPress Trac] #30565: Wordpress 4.1 is not firing Justify ExecCommands
WordPress Trac
noreply at wordpress.org
Mon Dec 1 20:25:41 UTC 2014
#30565: Wordpress 4.1 is not firing Justify ExecCommands
----------------------------+-----------------------------
Reporter: programmin | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: trunk
Severity: normal | Keywords:
Focuses: ui, javascript |
----------------------------+-----------------------------
In pre-4.1, you could catch attempts to align anything with:
{{{
ed.onExecCommand.add(function(editor, command) {
//command is JustifyCenter, JustifyLeft, JustifyRight, etc.
}
}}}
This let scripts know when user aligned anything. However, in 4.1 beta it
calls the execCommand when text is selected and align left/center/right
button is clicked, but never when an image is selected and the
left/center/right button is clicked.
Perhaps something in the new pop-up-alignment image toolbar is
interfering?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30565>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list