Changeset 40587
- Timestamp:
- 05/09/2017 01:39:49 AM (8 years ago)
- Location:
- trunk/src/wp-includes/js/tinymce/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
r40583 r40587 683 683 mceToolbar, 684 684 mceStatusbar, 685 namesAdded,686 685 wpStatusbar; 687 686 … … 701 700 702 701 each( buttons, function( item ) { 703 var itemName , ui, name;702 var itemName; 704 703 705 704 function bindSelectorChanged() { … … 769 768 buttonGroup = null; 770 769 } else { 771 // Add the new WP* types to the factory772 if ( ! namesAdded ) {773 ui = tinymce.ui;774 775 for ( name in ui ) {776 if ( name.toLowerCase().indexOf( 'wp' ) === 0 ) {777 Factory.add( name, ui[name] );778 }779 }780 781 namesAdded = true;782 }783 784 770 if ( ! buttonGroup ) { 785 771 buttonGroup = { -
trunk/src/wp-includes/js/tinymce/plugins/wplink/plugin.js
r38891 r40587 1 1 ( function( tinymce ) { 2 tinymce.ui. WPLinkPreview =tinymce.ui.Control.extend( {2 tinymce.ui.Factory.add( 'WPLinkPreview', tinymce.ui.Control.extend( { 3 3 url: '#', 4 4 renderHtml: function() { … … 51 51 } 52 52 } 53 } ) ;54 55 tinymce.ui. WPLinkInput =tinymce.ui.Control.extend( {53 } ) ); 54 55 tinymce.ui.Factory.add( 'WPLinkInput', tinymce.ui.Control.extend( { 56 56 renderHtml: function() { 57 57 return ( … … 83 83 urlInput.nextSibling.value = ''; 84 84 } 85 } ) ;85 } ) ); 86 86 87 87 tinymce.PluginManager.add( 'wplink', function( editor ) {
Note: See TracChangeset
for help on using the changeset viewer.