Changeset 659


Ignore:
Timestamp:
04/11/10 21:53:07 (2 years ago)
Author:
mr_lundis
Message:

Inline styles are now saved and restored when the user leaves fullscreen mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wymeditor/plugins/fullscreen/jquery.wymeditor.fullscreen.js

    r657 r659  
    7070    $box.find('li.wym_tools_fullscreen a').click(function() { 
    7171        if ($box.css('position') != 'fixed') { 
     72            // Store previous inline styles 
     73            $box.data('wym-inline-css', $box.attr('style')); 
     74            $iframe.data('wym-inline-css', $iframe.attr('style')); 
     75             
    7276            // Create overlay 
    7377            $overlay = jQuery('<div id="wym-fullscreen-overlay"></div>') 
     
    113117            $overlay.remove(); 
    114118            $overlay = null; 
     119             
     120            // Retore previous inline styles 
     121            $box.attr('style', $box.data('wym-inline-css')); 
     122            $iframe.attr('style', $iframe.data('wym-inline-css')); 
    115123        } 
    116124 
Note: See TracChangeset for help on using the changeset viewer.