Make WordPress Core

Changeset 20166


Ignore:
Timestamp:
03/09/2012 11:23:10 PM (14 years ago)
Author:
azaozz
Message:

Add support for DFW for all instances of the editor, part props sushkov, fixes #19843

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-classic.dev.css

    r20164 r20166  
    21162116}
    21172117
    2118 /* custom header & background pages */
    21192118#upload-form label {
    21202119        color: #777;
  • trunk/wp-admin/css/colors-fresh.dev.css

    r20164 r20166  
    183183#nav-menu-header,
    184184#nav-menu-footer,
    185 .menu-item-handle,
    186 #fullscreen-topbar {
     185.menu-item-handle {
    187186        background-color: #f1f1f1; /* Fallback */
    188187        background-image: -ms-linear-gradient(top, #f9f9f9, #ececec); /* IE10 */
     
    17371736}
    17381737
    1739 /* custom header & background pages */
    17401738#upload-form label {
    17411739        color: #777;
    1742 }
    1743 /* custom header & background pages */
    1744 
    1745 /* full screen */
    1746 .fullscreen-overlay {
    1747         background: #fff;
    1748 }
    1749 
    1750 .wp-fullscreen-focus #wp-fullscreen-title,
    1751 .wp-fullscreen-focus #wp-fullscreen-container {
    1752         border-color: #ccc;
    1753 }
    1754 
    1755 #fullscreen-topbar {
    1756         border-bottom-color: #DFDFDF;
    17571740}
    17581741
  • trunk/wp-admin/css/wp-admin-rtl.dev.css

    r19835 r20166  
    203203        margin: 1px 1px 1px 2px;
    204204}
    205 
    206 /* Distraction Free Writing mode
    207  * =Overlay Styles
    208 -------------------------------------------------------------- */
    209 
    210 /* No RTL for now, this space intentionally left blank */
    211 
    212 /* =Overlay Body
    213 -------------------------------------------------------------- */
    214 #wp-fullscreen-body {
    215         right: 0;
    216         left:auto;
    217 }
    218 
    219 #wp-fullscreen-tagline {
    220         float: left;
    221 }
    222 
    223 /* =Top bar
    224 -------------------------------------------------------------- */
    225 #fullscreen-topbar {
    226         left:auto;
    227         right: 0;
    228 }
    229 
    230 #wp-fullscreen-mode-bar,
    231 #wp-fullscreen-button-bar,
    232 #wp-fullscreen-close,
    233 #wp-fullscreen-count {
    234         float: right;
    235 }
    236 
    237 #wp-fullscreen-save {
    238         float: left;
    239 }
    240 
    241 #wp-fullscreen-save {
    242         padding: 2px 5px 0 2px;
    243 }
    244 
    245 #wp-fullscreen-buttons > div {
    246         float: right;
    247 }
    248 
    249 #wp-fullscreen-mode-bar {
    250         padding: 1px 0 0 14px;
    251 }
    252 
    253 #wp-fullscreen-modes a {
    254         float: right;
    255         border-width: 1px 0 1px 1px;
    256 }
    257 
    258 #wp-fullscreen-modes a:first-child {
    259         -webkit-border-top-left-radius: 0;
    260         -webkit-border-top-right-radius: 3px;
    261         -webkit-border-bottom-left-radius: 0;
    262         -webkit-border-bottom-right-radius: 3px;
    263         border-width: 1px;
    264         border-top-left-radius: 0;
    265         border-top-right-radius: 3px;
    266         border-bottom-right-left: 0;
    267         border-bottom-right-radius: 3px;
    268 }
    269 
    270 #wp-fullscreen-modes a:last-child {
    271         -webkit-border-top-right-radius: 0;
    272         -webkit-border-top-left-radius: 3px;
    273         -webkit-border-bottom-right-radius: 0;
    274         -webkit-border-bottom-left-radius: 3px;
    275         border-top-right-radius: 0;
    276         border-top-left-radius: 3px;
    277         border-bottom-right-radius: 0;
    278         border-bottom-left-radius: 3px;
    279 }
    280 
    281 #wp-fullscreen-save img,
    282 #wp-fullscreen-save span {
    283         padding-right: 0;
    284         padding-left: 4px;
    285 }
    286 
    287 /* =Thickbox Adjustments
    288 -------------------------------------------------------------- */
    289 /* No RTL for now, this space intentionally left blank */
    290 
    291 
    292 /* =TinyMCE Adjustments
    293 -------------------------------------------------------------- */
    294 /* No RTL for now, this space intentionally left blank */
    295 
    296 
    297205
    298206/*------------------------------------------------------------------------------
     
    24912399        font-style: normal;
    24922400        font-weight: bold;
    2493 }
     2401} 
  • trunk/wp-admin/css/wp-admin.dev.css

    r20164 r20166  
    633633
    634634
    635 /* =CSS 3 transitions
    636 -------------------------------------------------------------- */
    637 
    638 .fade-1000,
    639 .fade-600,
    640 .fade-400,
    641 .fade-300 {
    642         opacity: 0;
    643         -moz-transition-property: opacity;
    644         -webkit-transition-property: opacity;
    645         -o-transition-property: opacity;
    646         transition-property: opacity;
    647 }
    648 
    649 .fade-1000 {
    650         -moz-transition-duration: 1s;
    651         -webkit-transition-duration: 1s;
    652         -o-transition-duration: 1s;
    653         transition-duration: 1s;
    654 }
    655 
    656 .fade-600 {
    657         -moz-transition-duration: 0.6s;
    658         -webkit-transition-duration: 0.6s;
    659         -o-transition-duration: 0.6s;
    660         transition-duration: 0.6s;
    661 }
    662 
    663 .fade-400 {
    664         -moz-transition-duration: 0.4s;
    665         -webkit-transition-duration: 0.4s;
    666         -o-transition-duration: 0.4s;
    667         transition-duration: 0.4s;
    668 }
    669 
    670 .fade-300 {
    671         -moz-transition-duration: 0.3s;
    672         -webkit-transition-duration: 0.3s;
    673         -o-transition-duration: 0.3s;
    674         transition-duration: 0.3s;
    675 }
    676 
    677 .fade-trigger {
    678         opacity: 1;
    679 }
    680 
    681 
    682635/*------------------------------------------------------------------------------
    683636  1.0 - Text Styles
     
    11371090#ajax-response.alignleft {
    11381091        margin-left: 2em;
    1139 }
    1140 
    1141 
    1142 /* Distraction Free Writing mode
    1143  * =Overlay Styles
    1144 -------------------------------------------------------------- */
    1145 .fullscreen-overlay {
    1146         z-index: 149999;
    1147         display: none;
    1148         position: fixed;
    1149         top: 0;
    1150         bottom: 0;
    1151         left: 0;
    1152         right: 0;
    1153         filter: inherit;
    1154 }
    1155 
    1156 .fullscreen-active .fullscreen-overlay,
    1157 .fullscreen-active #wp-fullscreen-body {
    1158         display: block;
    1159 }
    1160 
    1161 .fullscreen-fader {
    1162         z-index: 200000;
    1163 }
    1164 
    1165 .fullscreen-active .fullscreen-fader {
    1166         display: none;
    1167 }
    1168 
    1169 /* =Overlay Body
    1170 -------------------------------------------------------------- */
    1171 #wp-fullscreen-body {
    1172         width: 100%;
    1173         z-index: 150005;
    1174         display: none;
    1175         position: absolute;
    1176         top: 0;
    1177         left: 0;
    1178 }
    1179 
    1180 #wp-fullscreen-wrap {
    1181         margin: 0 auto 50px;
    1182         position: relative;
    1183         padding-top: 60px;
    1184 }
    1185 
    1186 #wp-fullscreen-title {
    1187     font-size: 1.7em;
    1188     line-height: 100%;
    1189     outline: medium none;
    1190     padding: 6px 7px;
    1191     width: 100%;
    1192     margin-bottom: 30px;
    1193 }
    1194 
    1195 #wp-fullscreen-container {
    1196         padding: 4px 10px 50px;
    1197 }
    1198 
    1199 #wp-fullscreen-title,
    1200 #wp-fullscreen-container {
    1201         -webkit-border-radius: 0;
    1202         border-radius: 0;
    1203         border: 1px dashed transparent;
    1204         background: transparent;
    1205         -moz-transition-property: border-color;
    1206         -moz-transition-duration: 0.6s;
    1207         -webkit-transition-property: border-color;
    1208         -webkit-transition-duration: 0.6s;
    1209         -o-transition-property: border-color;
    1210         -o-transition-duration: 0.6s;
    1211         transition-property: border-color;
    1212         transition-duration: 0.6s;
    1213 }
    1214 
    1215 #wp_mce_fullscreen {
    1216         width: 100%;
    1217         min-height: 300px;
    1218         border: 0;
    1219         background: transparent;
    1220         font-family: Consolas, Monaco, monospace;
    1221         line-height: 1.6em;
    1222         padding: 0;
    1223         overflow-y: hidden;
    1224         outline: none;
    1225         resize: none;
    1226 }
    1227 
    1228 #wp-fullscreen-tagline {
    1229         color: #BBBBBB;
    1230         font-size: 18px;
    1231         float: right;
    1232         padding-top: 5px;
    1233 }
    1234 
    1235 /* =Top bar
    1236 -------------------------------------------------------------- */
    1237 #fullscreen-topbar {
    1238         position: fixed;
    1239         top: 0;
    1240         left: 0;
    1241         z-index: 150050;
    1242         border-bottom-style: solid;
    1243         border-bottom-width: 1px;
    1244         min-width: 800px;
    1245         width: 100%;
    1246         height: 40px;
    1247 }
    1248 
    1249 #wp-fullscreen-toolbar {
    1250         padding: 6px 10px 0;
    1251         clear: both;
    1252         max-width: 1100px;
    1253         min-width: 820px;
    1254         margin: 0 auto;
    1255 }
    1256 
    1257 #wp-fullscreen-mode-bar,
    1258 #wp-fullscreen-button-bar,
    1259 #wp-fullscreen-close,
    1260 #wp-fullscreen-count {
    1261         float: left;
    1262 }
    1263 
    1264 #wp-fullscreen-save {
    1265         float: right;
    1266         padding: 2px 2px 0 5px;
    1267 }
    1268 
    1269 #wp-fullscreen-count,
    1270 #wp-fullscreen-close {
    1271         padding-top: 5px;
    1272 }
    1273 
    1274 #wp-fullscreen-central-toolbar {
    1275         margin: auto;
    1276         padding: 0;
    1277 }
    1278 
    1279 #wp-fullscreen-buttons > div {
    1280         float: left;
    1281 }
    1282 
    1283 #wp-fullscreen-mode-bar {
    1284         padding: 1px 14px 0 0;
    1285 }
    1286 
    1287 #wp-fullscreen-modes a {
    1288         display: block;
    1289         font-size: 11px;
    1290         text-decoration: none;
    1291         float: left;
    1292         margin: 1px 0 0 0;
    1293         padding: 2px 6px 2px;
    1294         border-width: 1px 1px 1px 0;
    1295         border-style: solid;
    1296         border-color: #bbb;
    1297         color: #777;
    1298         text-shadow: 0 1px 0 #fff;
    1299         background-color: #f4f4f4;
    1300         background-image: -moz-linear-gradient(bottom,  #e4e4e4,  #f9f9f9);
    1301         background-image: -webkit-gradient(linear, left bottom, left top, from(#e4e4e4), to(#f9f9f9));
    1302 }
    1303 
    1304 #wp-fullscreen-modes a:hover,
    1305 .wp-html-mode #wp-fullscreen-modes a:last-child,
    1306 .wp-tmce-mode #wp-fullscreen-modes a:first-child {
    1307         color: #333;
    1308         border-color: #999;
    1309         background-color: #eee;
    1310         background-image: -moz-linear-gradient(bottom,  #f9f9f9,  #e0e0e0);
    1311         background-image: -webkit-gradient(linear, left bottom, left top, from(#f9f9f9), to(#e0e0e0));
    1312 }
    1313 
    1314 #wp-fullscreen-modes a:first-child {
    1315         border-width: 1px;
    1316         -webkit-border-top-left-radius: 3px;
    1317         -webkit-border-bottom-left-radius: 3px;
    1318         border-top-left-radius: 3px;
    1319         border-bottom-left-radius: 3px;
    1320 }
    1321 
    1322 #wp-fullscreen-modes a:last-child {
    1323         -webkit-border-top-right-radius: 3px;
    1324         -webkit-border-bottom-right-radius: 3px;
    1325         border-top-right-radius: 3px;
    1326         border-bottom-right-radius: 3px;
    1327 }
    1328 
    1329 #wp-fullscreen-buttons .active a {
    1330         background: inherit;
    1331 }
    1332 
    1333 #wp-fullscreen-buttons .hidden {
    1334         display: none;
    1335 }
    1336 
    1337 #wp-fullscreen-buttons .disabled {
    1338         opacity: 0.5;
    1339 }
    1340 
    1341 .wp-html-mode #wp-fullscreen-buttons div {
    1342         display: none;
    1343 }
    1344 
    1345 .wp-html-mode #wp-fullscreen-buttons div.wp-fullscreen-both {
    1346         display: block;
    1347 }
    1348 
    1349 #fullscreen-topbar.fullscreen-make-sticky {
    1350         display: block !important;
    1351 }
    1352 
    1353 #wp-fullscreen-save img {
    1354         vertical-align: middle;
    1355 }
    1356 
    1357 #wp-fullscreen-save img,
    1358 #wp-fullscreen-save span {
    1359         padding-right: 4px;
    1360         display: none;
    1361 }
    1362 
    1363 #wp-fullscreen-buttons .mce_image .mce_image {
    1364         background-image: url('../images/menu.png?ver=20120201');
    1365         background-position: -124px -38px;
    1366 }
    1367 
    1368 #wp-fullscreen-buttons .mce_image .mce_image:hover {
    1369         background-position: -124px -6px;
    1370 }
    1371 
    1372 /* =Thickbox Adjustments
    1373 -------------------------------------------------------------- */
    1374 .fullscreen-active #TB_overlay {
    1375         z-index: 150100;
    1376 }
    1377 
    1378 .fullscreen-active #TB_window {
    1379         z-index: 150102;
    1380 }
    1381 
    1382 /* =TinyMCE Adjustments
    1383 -------------------------------------------------------------- */
    1384 #wp_mce_fullscreen_ifr {
    1385         background: transparent;
    1386 }
    1387 
    1388 #wp_mce_fullscreen_parent #wp_mce_fullscreen_tbl tr.mceFirst {
    1389         display : none;
    1390 }
    1391 
    1392 #wp-fullscreen-container .wp_themeSkin table td {
    1393         vertical-align: top;
    13941092}
    13951093
  • trunk/wp-admin/js/wp-fullscreen.dev.js

    r19684 r20166  
    139139
    140140                // Settings can be added or changed by defining "wp_fullscreen_settings" JS object.
    141                 // This can be done by defining it as PHP associative array, json encoding it and passing it to JS with:
    142                 // wp_add_script_before( 'wp-fullscreen', 'wp_fullscreen_settings = ' . $json_encoded_array . ';' );
    143141                if ( typeof(wp_fullscreen_settings) == 'object' )
    144142                        $.extend( s, wp_fullscreen_settings );
     
    146144                s.editor_id = wpActiveEditor || 'content';
    147145
    148                 if ( !s.title_id ) {
    149                         if ( $('input#title').length && s.editor_id == 'content' )
    150                                 s.title_id = 'title';
    151                         else if ( $('input#' + s.editor_id + '-title').length ) // the title input field should have [editor_id]-title HTML ID to be auto detected
    152                                 s.title_id = s.editor_id + '-title';
    153                         else
    154                                 $('#wp-fullscreen-title, #wp-fullscreen-title-prompt-text').hide();
    155                 }
     146                if ( $('input#title').length && s.editor_id == 'content' )
     147                        s.title_id = 'title';
     148                else if ( $('input#' + s.editor_id + '-title').length ) // the title input field should have [editor_id]-title HTML ID to be auto detected
     149                        s.title_id = s.editor_id + '-title';
     150                else
     151                        $('#wp-fullscreen-title, #wp-fullscreen-title-prompt-text').hide();
    156152
    157153                s.mode = $('#' + s.editor_id).is(':hidden') ? 'tinymce' : 'html';
  • trunk/wp-includes/class-wp-editor.php

    r20059 r20166  
    619619                $save = isset($post->post_status) && $post->post_status == 'publish' ? __('Update') : __('Save');
    620620        ?>
    621         <div id="wp-fullscreen-body">
     621        <div id="wp-fullscreen-body"<?php if ( is_rtl() ) echo ' class="rtl"'; ?>>
    622622        <div id="fullscreen-topbar">
    623623                <div id="wp-fullscreen-toolbar">
     
    670670                        <div id="wp-fullscreen-save">
    671671                                <span><?php if ( $post->post_status == 'publish' ) _e('Updated.'); else _e('Saved.'); ?></span>
    672                                 <img src="images/wpspin_light.gif" alt="" />
     672                                <img src="<?php echo admin_url('images/wpspin_light.gif'); ?>" alt="" />
    673673                                <input type="button" class="button-primary" value="<?php echo $save; ?>" onclick="fullscreen.save();" />
    674674                        </div>
  • trunk/wp-includes/css/editor-buttons.dev.css

    r20164 r20166  
    16151615        color: #e5e5e5;
    16161616}
     1617
     1618
     1619/* Distraction Free Writing mode
     1620 * =Overlay Styles
     1621-------------------------------------------------------------- */
     1622.fullscreen-overlay {
     1623        z-index: 149999;
     1624        display: none;
     1625        position: fixed;
     1626        top: 0;
     1627        bottom: 0;
     1628        left: 0;
     1629        right: 0;
     1630        filter: inherit;
     1631}
     1632
     1633.fullscreen-active .fullscreen-overlay,
     1634.fullscreen-active #wp-fullscreen-body {
     1635        display: block;
     1636}
     1637
     1638.fullscreen-fader {
     1639        z-index: 200000;
     1640}
     1641
     1642.fullscreen-active .fullscreen-fader {
     1643        display: none;
     1644}
     1645
     1646/* =Overlay Body
     1647-------------------------------------------------------------- */
     1648#wp-fullscreen-body {
     1649        width: 100%;
     1650        z-index: 150005;
     1651        display: none;
     1652        position: absolute;
     1653        top: 0;
     1654        left: 0;
     1655        font-size: 12px;
     1656}
     1657
     1658#wp-fullscreen-wrap {
     1659        margin: 0 auto 50px;
     1660        position: relative;
     1661        padding-top: 60px;
     1662}
     1663
     1664#wp-fullscreen-title {
     1665    font-size: 1.7em;
     1666    line-height: 100%;
     1667    outline: medium none;
     1668    padding: 6px 7px;
     1669    width: 100%;
     1670    margin-bottom: 30px;
     1671}
     1672
     1673#wp-fullscreen-container {
     1674        padding: 4px 10px 50px;
     1675}
     1676
     1677#wp-fullscreen-title,
     1678#wp-fullscreen-container {
     1679        -webkit-border-radius: 0;
     1680        border-radius: 0;
     1681        border: 1px dashed transparent;
     1682        background: transparent;
     1683        -moz-transition-property: border-color;
     1684        -moz-transition-duration: 0.6s;
     1685        -webkit-transition-property: border-color;
     1686        -webkit-transition-duration: 0.6s;
     1687        -o-transition-property: border-color;
     1688        -o-transition-duration: 0.6s;
     1689        transition-property: border-color;
     1690        transition-duration: 0.6s;
     1691}
     1692
     1693#wp_mce_fullscreen {
     1694        width: 100%;
     1695        min-height: 300px;
     1696        border: 0;
     1697        background: transparent;
     1698        font-family: Consolas, Monaco, monospace;
     1699        line-height: 1.6em;
     1700        padding: 0;
     1701        overflow-y: hidden;
     1702        outline: none;
     1703        resize: none;
     1704}
     1705
     1706#wp-fullscreen-tagline {
     1707        color: #BBBBBB;
     1708        font-size: 18px;
     1709        float: right;
     1710        padding-top: 5px;
     1711}
     1712
     1713/* =Top bar
     1714-------------------------------------------------------------- */
     1715#fullscreen-topbar {
     1716        position: fixed;
     1717        top: 0;
     1718        left: 0;
     1719        z-index: 150050;
     1720        border-bottom-style: solid;
     1721        border-bottom-width: 1px;
     1722        min-width: 800px;
     1723        width: 100%;
     1724        height: 40px;
     1725}
     1726
     1727#wp-fullscreen-toolbar {
     1728        padding: 6px 10px 0;
     1729        clear: both;
     1730        max-width: 1100px;
     1731        min-width: 820px;
     1732        margin: 0 auto;
     1733}
     1734
     1735#wp-fullscreen-mode-bar,
     1736#wp-fullscreen-button-bar,
     1737#wp-fullscreen-close,
     1738#wp-fullscreen-count {
     1739        float: left;
     1740}
     1741
     1742#wp-fullscreen-save {
     1743        float: right;
     1744        padding: 2px 2px 0 5px;
     1745}
     1746
     1747#wp-fullscreen-count,
     1748#wp-fullscreen-close {
     1749        padding-top: 5px;
     1750}
     1751
     1752#wp-fullscreen-central-toolbar {
     1753        margin: auto;
     1754        padding: 0;
     1755}
     1756
     1757#wp-fullscreen-buttons > div {
     1758        float: left;
     1759}
     1760
     1761#wp-fullscreen-mode-bar {
     1762        padding: 1px 14px 0 0;
     1763}
     1764
     1765#wp-fullscreen-modes a {
     1766        display: block;
     1767        font-size: 11px;
     1768        text-decoration: none;
     1769        float: left;
     1770        margin: 1px 0 0 0;
     1771        padding: 2px 6px 2px;
     1772        border-width: 1px 1px 1px 0;
     1773        border-style: solid;
     1774        border-color: #bbb;
     1775        color: #777;
     1776        text-shadow: 0 1px 0 #fff;
     1777        background-color: #f4f4f4;
     1778        background-image: -moz-linear-gradient(bottom,  #e4e4e4,  #f9f9f9);
     1779        background-image: -webkit-gradient(linear, left bottom, left top, from(#e4e4e4), to(#f9f9f9));
     1780}
     1781
     1782#wp-fullscreen-modes a:hover,
     1783.wp-html-mode #wp-fullscreen-modes a:last-child,
     1784.wp-tmce-mode #wp-fullscreen-modes a:first-child {
     1785        color: #333;
     1786        border-color: #999;
     1787        background-color: #eee;
     1788        background-image: -moz-linear-gradient(bottom,  #f9f9f9,  #e0e0e0);
     1789        background-image: -webkit-gradient(linear, left bottom, left top, from(#f9f9f9), to(#e0e0e0));
     1790}
     1791
     1792#wp-fullscreen-modes a:first-child {
     1793        border-width: 1px;
     1794        -webkit-border-top-left-radius: 3px;
     1795        -webkit-border-bottom-left-radius: 3px;
     1796        border-top-left-radius: 3px;
     1797        border-bottom-left-radius: 3px;
     1798}
     1799
     1800#wp-fullscreen-modes a:last-child {
     1801        -webkit-border-top-right-radius: 3px;
     1802        -webkit-border-bottom-right-radius: 3px;
     1803        border-top-right-radius: 3px;
     1804        border-bottom-right-radius: 3px;
     1805}
     1806
     1807#wp-fullscreen-buttons .active a {
     1808        background: inherit;
     1809}
     1810
     1811#wp-fullscreen-buttons .hidden {
     1812        display: none;
     1813}
     1814
     1815#wp-fullscreen-buttons .disabled {
     1816        opacity: 0.5;
     1817}
     1818
     1819.wp-html-mode #wp-fullscreen-buttons div {
     1820        display: none;
     1821}
     1822
     1823.wp-html-mode #wp-fullscreen-buttons div.wp-fullscreen-both {
     1824        display: block;
     1825}
     1826
     1827#fullscreen-topbar.fullscreen-make-sticky {
     1828        display: block !important;
     1829}
     1830
     1831#wp-fullscreen-save img {
     1832        vertical-align: middle;
     1833}
     1834
     1835#wp-fullscreen-save img,
     1836#wp-fullscreen-save span {
     1837        padding-right: 4px;
     1838        display: none;
     1839}
     1840
     1841#wp-fullscreen-buttons .mce_image .mce_image {
     1842        background-image: url('../../wp-admin/images/media-button.png?ver=20120201');
     1843        background-position: 3px 3px;
     1844}
     1845
     1846/* =Thickbox Adjustments
     1847-------------------------------------------------------------- */
     1848.fullscreen-active #TB_overlay {
     1849        z-index: 150100;
     1850}
     1851
     1852.fullscreen-active #TB_window {
     1853        z-index: 150102;
     1854}
     1855
     1856/* =TinyMCE Adjustments
     1857-------------------------------------------------------------- */
     1858#wp_mce_fullscreen_ifr {
     1859        background: transparent;
     1860}
     1861
     1862#wp_mce_fullscreen_parent #wp_mce_fullscreen_tbl tr.mceFirst {
     1863        display : none;
     1864}
     1865
     1866#wp-fullscreen-container .wp_themeSkin table td {
     1867        vertical-align: top;
     1868}
     1869
     1870/* Colors */
     1871.fullscreen-overlay {
     1872        background: #fff;
     1873}
     1874
     1875.wp-fullscreen-focus #wp-fullscreen-title,
     1876.wp-fullscreen-focus #wp-fullscreen-container {
     1877        border-color: #ccc;
     1878}
     1879
     1880#fullscreen-topbar {
     1881        border-bottom-color: #DFDFDF;
     1882        background-color: #f1f1f1; /* Fallback */
     1883        background-image: -ms-linear-gradient(top, #f9f9f9, #ececec); /* IE10 */
     1884        background-image: -moz-linear-gradient(top, #f9f9f9, #ececec); /* Firefox */
     1885        background-image: -o-linear-gradient(top, #f9f9f9, #ececec); /* Opera */
     1886        background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec)); /* old Webkit */
     1887        background-image: -webkit-linear-gradient(top, #f9f9f9, #ececec); /* new Webkit */
     1888        background-image: linear-gradient(top, #f9f9f9, #ececec); /* proposed W3C Markup */
     1889}
     1890
     1891/* =CSS 3 transitions
     1892-------------------------------------------------------------- */
     1893
     1894.fade-1000,
     1895.fade-600,
     1896.fade-400,
     1897.fade-300 {
     1898        opacity: 0;
     1899        -moz-transition-property: opacity;
     1900        -webkit-transition-property: opacity;
     1901        -o-transition-property: opacity;
     1902        transition-property: opacity;
     1903}
     1904
     1905.fade-1000 {
     1906        -moz-transition-duration: 1s;
     1907        -webkit-transition-duration: 1s;
     1908        -o-transition-duration: 1s;
     1909        transition-duration: 1s;
     1910}
     1911
     1912.fade-600 {
     1913        -moz-transition-duration: 0.6s;
     1914        -webkit-transition-duration: 0.6s;
     1915        -o-transition-duration: 0.6s;
     1916        transition-duration: 0.6s;
     1917}
     1918
     1919.fade-400 {
     1920        -moz-transition-duration: 0.4s;
     1921        -webkit-transition-duration: 0.4s;
     1922        -o-transition-duration: 0.4s;
     1923        transition-duration: 0.4s;
     1924}
     1925
     1926.fade-300 {
     1927        -moz-transition-duration: 0.3s;
     1928        -webkit-transition-duration: 0.3s;
     1929        -o-transition-duration: 0.3s;
     1930        transition-duration: 0.3s;
     1931}
     1932
     1933.fade-trigger {
     1934        opacity: 1;
     1935}
     1936
     1937/* Distraction Free Writing - RTL
     1938 * =Overlay Styles
     1939-------------------------------------------------------------- */
     1940
     1941/* No RTL for now, this space intentionally left blank */
     1942
     1943/* =Overlay Body
     1944-------------------------------------------------------------- */
     1945.rtl #wp-fullscreen-tagline {
     1946        float: left;
     1947}
     1948
     1949/* =Top bar
     1950-------------------------------------------------------------- */
     1951.rtl #fullscreen-topbar {
     1952        left:auto;
     1953        right: 0;
     1954}
     1955
     1956.rtl #wp-fullscreen-mode-bar,
     1957.rtl #wp-fullscreen-button-bar,
     1958.rtl #wp-fullscreen-close,
     1959.rtl #wp-fullscreen-count {
     1960        float: right;
     1961}
     1962
     1963.rtl #wp-fullscreen-save {
     1964        float: left;
     1965}
     1966
     1967.rtl #wp-fullscreen-save {
     1968        padding: 2px 5px 0 2px;
     1969}
     1970
     1971.rtl #wp-fullscreen-buttons > div {
     1972        float: right;
     1973}
     1974
     1975.rtl #wp-fullscreen-mode-bar {
     1976        padding: 1px 0 0 14px;
     1977}
     1978
     1979.rtl #wp-fullscreen-modes a {
     1980        float: right;
     1981        border-width: 1px 0 1px 1px;
     1982}
     1983
     1984.rtl #wp-fullscreen-modes a:first-child {
     1985        -webkit-border-top-left-radius: 0;
     1986        -webkit-border-top-right-radius: 3px;
     1987        -webkit-border-bottom-left-radius: 0;
     1988        -webkit-border-bottom-right-radius: 3px;
     1989        border-width: 1px;
     1990        border-top-left-radius: 0;
     1991        border-top-right-radius: 3px;
     1992        border-bottom-right-left: 0;
     1993        border-bottom-right-radius: 3px;
     1994}
     1995
     1996.rtl #wp-fullscreen-modes a:last-child {
     1997        -webkit-border-top-right-radius: 0;
     1998        -webkit-border-top-left-radius: 3px;
     1999        -webkit-border-bottom-right-radius: 0;
     2000        -webkit-border-bottom-left-radius: 3px;
     2001        border-top-right-radius: 0;
     2002        border-top-left-radius: 3px;
     2003        border-bottom-right-radius: 0;
     2004        border-bottom-left-radius: 3px;
     2005}
     2006
     2007.rtl #wp-fullscreen-save img,
     2008.rtl #wp-fullscreen-save span {
     2009        padding-right: 0;
     2010        padding-left: 4px;
     2011}
     2012
     2013/* =Thickbox Adjustments
     2014-------------------------------------------------------------- */
     2015/* No RTL for now, this space intentionally left blank */
     2016
     2017
     2018/* =TinyMCE Adjustments
     2019-------------------------------------------------------------- */
     2020/* No RTL for now, this space intentionally left blank */
     2021
  • trunk/wp-includes/js/quicktags.dev.js

    r19290 r20166  
    600600        qt.FullscreenButton.prototype = new qt.Button();
    601601        qt.FullscreenButton.prototype.callback = function(e, c) {
    602                 if ( c.id != 'content' || typeof(fullscreen) == 'undefined' )
     602                if ( !c.id || typeof(fullscreen) == 'undefined' )
    603603                        return;
    604604
  • trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js

    r19945 r20166  
    3535                                var d, b, fsed;
    3636
    37                                 ed = tinymce.get('content');
     37                                ed = tinyMCE.activeEditor;
    3838                                d = ed.getDoc();
    3939                                b = d.body;
Note: See TracChangeset for help on using the changeset viewer.