Ticket #5806: keep-state-of-hidden-row.patch
File keep-state-of-hidden-row.patch, 1.2 KB (added by , 16 years ago) |
---|
-
wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js
16 16 17 17 // Hides the specified toolbar and resizes the iframe 18 18 ed.onPostRender.add(function() { 19 DOM.hide(ed.controlManager.get(tbId).id); 20 t._resizeIframe(ed, tbId, 28); 19 if ( ed.getParam('wordpress_adv_hidden', 1) ) { 20 DOM.hide(ed.controlManager.get(tbId).id); 21 t._resizeIframe(ed, tbId, 28); 22 } 21 23 }); 22 24 23 25 // Register buttons … … 33 35 title : 'wordpress.wp_page_desc', 34 36 image : url + '/img/page.gif', 35 37 onclick : function() { 36 // ed.execCommand('mcePageBreak');37 38 ed.execCommand('mceInsertContent', 0, nextpageHTML); 38 39 } 39 40 }); … … 61 62 cm.setActive('wp_adv', 1); 62 63 DOM.show(id); 63 64 t._resizeIframe(ed, tbId, -28); 65 ed.settings.wordpress_adv_hidden = 0; 64 66 } else { 65 67 cm.setActive('wp_adv', 0); 66 68 DOM.hide(id); 67 69 t._resizeIframe(ed, tbId, 28); 70 ed.settings.wordpress_adv_hidden = 1; 68 71 } 69 72 } 70 73 });