Changes between Version 2 and Version 3 of Ticket #26872, comment 5
- Timestamp:
- 01/19/2014 05:41:40 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26872, comment 5
v2 v3 1 1 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. 2 2 3 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 fire a custom jQuery event when an editor instance is initialized, perhaps something like `jQuery( document ).trigger( 'wp-tinymce-init', [ editor instance ] );`.3 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 fire a custom jQuery event when an editor instance is initialized, perhaps something like `jQuery( document ).trigger( 'wp-tinymce-init', [ editor instance ] );`. 4 4 5 5 Ref: http://www.tinymce.com/wiki.php/api4:class.tinymce, http://www.tinymce.com/wiki.php/api4:class.tinymce.Editor.