Showing
3 changed files
with
19 additions
and
2 deletions
| ... | @@ -11,3 +11,12 @@ body { | ... | @@ -11,3 +11,12 @@ body { |
| 11 | color: #444; | 11 | color: #444; |
| 12 | -webkit-font-smoothing: antialiased; | 12 | -webkit-font-smoothing: antialiased; |
| 13 | } | 13 | } |
| 14 | + | ||
| 15 | +table { | ||
| 16 | + min-width: 100px; | ||
| 17 | + td { | ||
| 18 | + min-width: 10px; | ||
| 19 | + padding: 4px 6px; | ||
| 20 | + border: 1px solid #DDD; | ||
| 21 | + } | ||
| 22 | +} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -15,4 +15,8 @@ | ... | @@ -15,4 +15,8 @@ |
| 15 | position: fixed; | 15 | position: fixed; |
| 16 | top: 0; | 16 | top: 0; |
| 17 | height: 100%; | 17 | height: 100%; |
| 18 | + width: 825px; | ||
| 19 | + max-width: 100%; | ||
| 20 | + margin-left: -$-s; | ||
| 21 | + box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.08); | ||
| 18 | } | 22 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -47,10 +47,14 @@ | ... | @@ -47,10 +47,14 @@ |
| 47 | }, | 47 | }, |
| 48 | setup: function(editor) { | 48 | setup: function(editor) { |
| 49 | editor.addButton('full', { | 49 | editor.addButton('full', { |
| 50 | - text: 'Expand', | 50 | + title: 'Expand Editor', |
| 51 | - icon: false, | 51 | + icon: 'fullscreen', |
| 52 | onclick: function() { | 52 | onclick: function() { |
| 53 | var container = $(editor.getContainer()).toggleClass('fullscreen'); | 53 | var container = $(editor.getContainer()).toggleClass('fullscreen'); |
| 54 | + var isFull = container.hasClass('fullscreen'); | ||
| 55 | + var iframe = container.find('iframe').first(); | ||
| 56 | + var height = isFull ? $(window).height()-110 : 600; | ||
| 57 | + iframe.css('height', height + 'px'); | ||
| 54 | } | 58 | } |
| 55 | }); | 59 | }); |
| 56 | } | 60 | } | ... | ... |
-
Please register or sign in to post a comment