Changeset 20804
- Timestamp:
- 05/16/2012 07:02:55 AM (12 years ago)
- Location:
- trunk/wp-includes/js/tinymce/plugins/wpfullscreen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css
r19577 r20804 3 3 */ 4 4 5 html, body { 5 html, 6 body { 6 7 background: transparent; 7 8 width: auto !important; 8 9 max-width: none !important; 9 margin: 0; 10 padding: 0; 10 margin: 0 !important; 11 padding: 0 !important; 12 min-height: 0 !important; 11 13 } -
trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js
r20724 r20804 9 9 10 10 init : function(ed, url) { 11 var t = this, oldHeight = 0, s = {}, DOM = tinymce.DOM , resized = false;11 var t = this, oldHeight = 0, s = {}, DOM = tinymce.DOM; 12 12 13 13 // Register commands … … 113 113 */ 114 114 function resize() { 115 if ( resized )116 return;117 118 115 var d = ed.getDoc(), DOM = tinymce.DOM, resizeHeight, myHeight; 119 116 120 117 // Get height differently depending on the browser used 121 if ( tinymce.isIE || tinymce.isWebKit ) 118 if ( tinymce.isWebKit ) 119 myHeight = d.body.offsetHeight; 120 else 122 121 myHeight = d.body.scrollHeight; 123 else124 myHeight = d.body.offsetHeight;125 122 126 123 // Don't make it smaller than 300px … … 129 126 // Resize content element 130 127 if ( oldHeight != resizeHeight ) { 131 resized = true;132 setTimeout(function(){ resized = false; }, 100);133 128 DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px'); 134 129 oldHeight = resizeHeight; 130 ed.getWin().scrollTo(0,0); 135 131 } 136 132 };
Note: See TracChangeset
for help on using the changeset viewer.