Ticket #28242: 28242.patch
| File 28242.patch, 2.7 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/js/editor.js
60 60 if ( ed ) { 61 61 ed.show(); 62 62 63 if ( editorHeight ) {63 if ( ! tinymce.Env.iOS && editorHeight ) { 64 64 toolbarHeight = getToolbarHeight(); 65 65 editorHeight = editorHeight - toolbarHeight + 14; 66 66 … … 84 84 } 85 85 86 86 if ( ed ) { 87 iframe = DOM.get( id + '_ifr' ); 88 editorHeight = iframe ? parseInt( iframe.style.height, 10 ) : 0; 87 if ( ! tinymce.Env.iOS ) { 88 iframe = DOM.get( id + '_ifr' ); 89 editorHeight = iframe ? parseInt( iframe.style.height, 10 ) : 0; 89 90 90 if ( editorHeight ) {91 toolbarHeight = getToolbarHeight();92 editorHeight = editorHeight + toolbarHeight - 14;91 if ( editorHeight ) { 92 toolbarHeight = getToolbarHeight(); 93 editorHeight = editorHeight + toolbarHeight - 14; 93 94 94 // height cannot be under 50 or over 5000 95 if ( editorHeight > 50 && editorHeight < 5000 ) { 96 txtarea_el.style.height = editorHeight + 'px'; 95 // height cannot be under 50 or over 5000 96 if ( editorHeight > 50 && editorHeight < 5000 ) { 97 txtarea_el.style.height = editorHeight + 'px'; 98 } 97 99 } 98 100 } 99 101 -
src/wp-includes/js/tinymce/plugins/wordpress/plugin.js
292 292 } 293 293 } 294 294 295 if ( tinymce.Env.iOS ) { 296 bodyClass.push('ios'); 297 } 298 295 299 bodyClass.push('wp-editor'); 296 300 297 301 tinymce.each( bodyClass, function( cls ) { … … 358 362 editor.on( 'preInit', function() { 359 363 // Don't replace <i> with <em> and <b> with <strong> and don't remove them when empty 360 364 editor.schema.addValidElements( '@[id|accesskey|class|dir|lang|style|tabindex|title|contenteditable|draggable|dropzone|hidden|spellcheck|translate],i,b' ); 365 366 if ( tinymce.Env.iOS ) { 367 editor.settings.height = 300; 368 } 361 369 }); 362 370 363 371 // Add custom shortcuts -
src/wp-includes/js/tinymce/skins/wordpress/wp-content.css
1 1 /* Additional default styles for the editor */ 2 3 html { 4 height: 100%; 5 } 6 7 body#tinymce.ios { 8 height: 200%; 9 max-width: none; 10 } 11 2 12 body { 3 13 font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif; 4 14 font-size: 13px;