Changeset 33728
- Timestamp:
- 08/25/2015 04:37:27 AM (9 years ago)
- Location:
- trunk/src/wp-includes/js/tinymce/plugins
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
r33141 r33728 62 62 63 63 editor.once( 'preinit', function() { 64 toolbar = editor.wp._createToolbar( [ 65 'wp_img_alignleft', 66 'wp_img_aligncenter', 67 'wp_img_alignright', 68 'wp_img_alignnone', 69 'wp_img_edit', 70 'wp_img_remove' 71 ] ); 64 if ( editor.wp && editor.wp._createToolbar ) { 65 toolbar = editor.wp._createToolbar( [ 66 'wp_img_alignleft', 67 'wp_img_aligncenter', 68 'wp_img_alignright', 69 'wp_img_alignnone', 70 'wp_img_edit', 71 'wp_img_remove' 72 ] ); 73 } 72 74 } ); 73 75 … … 89 91 editor.nodeChanged(); 90 92 }, 200 ); 91 } else {93 } else if ( toolbar ) { 92 94 toolbar.hide(); 93 95 } -
trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js
r33584 r33728 137 137 138 138 editor.on( 'preinit', function() { 139 toolbar = editor.wp._createToolbar( [ 140 'wp_link_preview', 141 'wp_link_edit', 142 'wp_link_remove' 143 ], true ); 139 if ( editor.wp && editor.wp._createToolbar ) { 140 toolbar = editor.wp._createToolbar( [ 141 'wp_link_preview', 142 'wp_link_edit', 143 'wp_link_remove' 144 ], true ); 145 } 144 146 } ); 145 147 } ); -
trunk/src/wp-includes/js/tinymce/plugins/wpview/plugin.js
r33484 r33728 714 714 715 715 editor.once( 'preinit', function() { 716 toolbar = editor.wp._createToolbar( [ 717 'wp_view_edit', 718 'wp_view_remove' 719 ] ); 716 if ( editor.wp && editor.wp._createToolbar ) { 717 toolbar = editor.wp._createToolbar( [ 718 'wp_view_edit', 719 'wp_view_remove' 720 ] ); 721 } 720 722 } ); 721 723
Note: See TracChangeset
for help on using the changeset viewer.