Ticket #29923: 29923.patch
File 29923.patch, 1.6 KB (added by , 9 years ago) |
---|
-
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
836 836 } 837 837 } ); 838 838 839 // Temporary iOS hack. 840 editor.on( 'selectionchange', function() { 841 editor.nodeChanged( { selectionChange: true } ); 842 } ); 843 839 844 editor.on( 'focus', function() { 840 845 if ( activeToolbar ) { 841 846 activeToolbar.show(); … … 874 879 editor.wp._createToolbar = create; 875 880 }, true ); 876 881 882 var toolbar; 883 884 editor.on( 'preinit', function() { 885 toolbar = editor.wp._createToolbar( [ 886 'bold', 887 'italic', 888 'link', 889 'strikethrough' 890 ], true ); 891 } ); 892 893 editor.on( 'wptoolbar', function( event ) { 894 if ( ! event.collapsed && tinymce.trim( editor.selection.getContent().replace( /<[^>]+>/g ) ) ) { 895 event.selection = editor.selection.getRng(); 896 event.toolbar = toolbar; 897 } 898 } ); 899 877 900 function noop() {} 878 901 879 902 // Expose some functions (back-compat) -
src/wp-includes/js/tinymce/plugins/wplink/plugin.js
105 105 $ = editor.$, 106 106 href; 107 107 108 if ( anchor && ! $( anchor ).find( 'img' ).length &&108 if ( event.collapsed && anchor && ! $( anchor ).find( 'img' ).length && 109 109 ( href = $( anchor ).attr( 'href' ) ) ) { 110 110 111 111 self.setURL( href );