[wp-trac] [WordPress Trac] #26872: TinyMCE 4.0 and missing/changed ID attributes
WordPress Trac
noreply at wordpress.org
Sun Jan 19 05:35:25 UTC 2014
#26872: TinyMCE 4.0 and missing/changed ID attributes
--------------------------+--------------------
Reporter: GregRoss | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: TinyMCE | Version: trunk
Severity: normal | Resolution:
Keywords: close |
--------------------------+--------------------
Comment (by azaozz):
Yeah, think the buttons IDs change depending on the button position and
the instance. They are auto-generated from an incrementing value. Same for
the toolbars and other containers.
There are better ways to determine when the editor is "ready". For example
can use `tinymce.on( 'AddEditor', function( editor ) { editor.on( 'init',
function() { [your code] } ): }):`. Also thinking to fie a custom jQuery
event when an editor instance is initialized, perhaps something like
`jQuery( document ).trigger( 'wp-tinymce-init', [ editor instance ] );`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26872#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list