<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[20166] trunk: Add support for DFW for all instances of the editor, part props sushkov, fixes #19843</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/20166">20166</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2012-03-09 23:23:10 +0000 (Fri, 09 Mar 2012)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add support for DFW for all instances of the editor, part props sushkov, fixes <a href="http://core.trac.wordpress.org/ticket/19843">#19843</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmincsscolorsclassicdevcss">trunk/wp-admin/css/colors-classic.dev.css</a></li>
<li><a href="#trunkwpadmincsscolorsfreshdevcss">trunk/wp-admin/css/colors-fresh.dev.css</a></li>
<li><a href="#trunkwpadmincsswpadminrtldevcss">trunk/wp-admin/css/wp-admin-rtl.dev.css</a></li>
<li><a href="#trunkwpadmincsswpadmindevcss">trunk/wp-admin/css/wp-admin.dev.css</a></li>
<li><a href="#trunkwpadminjswpfullscreendevjs">trunk/wp-admin/js/wp-fullscreen.dev.js</a></li>
<li><a href="#trunkwpincludesclasswpeditorphp">trunk/wp-includes/class-wp-editor.php</a></li>
<li><a href="#trunkwpincludescsseditorbuttonsdevcss">trunk/wp-includes/css/editor-buttons.dev.css</a></li>
<li><a href="#trunkwpincludesjsquicktagsdevjs">trunk/wp-includes/js/quicktags.dev.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswpfullscreeneditor_plugin_srcjs">trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincsscolorsclassicdevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/colors-classic.dev.css (20165 => 20166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/colors-classic.dev.css        2012-03-09 01:45:40 UTC (rev 20165)
+++ trunk/wp-admin/css/colors-classic.dev.css        2012-03-09 23:23:10 UTC (rev 20166)
</span><span class="lines">@@ -2115,7 +2115,6 @@
</span><span class="cx">         border-bottom-color: #eff8ff;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-/* custom header & background pages */
</del><span class="cx"> #upload-form label {
</span><span class="cx">         color: #777;
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkwpadmincsscolorsfreshdevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/colors-fresh.dev.css (20165 => 20166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/colors-fresh.dev.css        2012-03-09 01:45:40 UTC (rev 20165)
+++ trunk/wp-admin/css/colors-fresh.dev.css        2012-03-09 23:23:10 UTC (rev 20166)
</span><span class="lines">@@ -182,8 +182,7 @@
</span><span class="cx"> .sidebar-name,
</span><span class="cx"> #nav-menu-header,
</span><span class="cx"> #nav-menu-footer,
</span><del>-.menu-item-handle,
-#fullscreen-topbar {
</del><ins>+.menu-item-handle {
</ins><span class="cx">         background-color: #f1f1f1; /* Fallback */
</span><span class="cx">         background-image: -ms-linear-gradient(top, #f9f9f9, #ececec); /* IE10 */
</span><span class="cx">         background-image: -moz-linear-gradient(top, #f9f9f9, #ececec); /* Firefox */
</span><span class="lines">@@ -1736,26 +1735,10 @@
</span><span class="cx">         border-bottom-color: #f9f9f9;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-/* custom header & background pages */
</del><span class="cx"> #upload-form label {
</span><span class="cx">         color: #777;
</span><span class="cx"> }
</span><del>-/* custom header & background pages */
</del><span class="cx">
</span><del>-/* full screen */
-.fullscreen-overlay {
-        background: #fff;
-}
-
-.wp-fullscreen-focus #wp-fullscreen-title,
-.wp-fullscreen-focus #wp-fullscreen-container {
-        border-color: #ccc;
-}
-
-#fullscreen-topbar {
-        border-bottom-color: #DFDFDF;
-}
-
</del><span class="cx"> /* Begin About Pages */
</span><span class="cx">
</span><span class="cx"> .about-wrap h1 {
</span></span></pre></div>
<a id="trunkwpadmincsswpadminrtldevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/wp-admin-rtl.dev.css (20165 => 20166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/wp-admin-rtl.dev.css        2012-03-09 01:45:40 UTC (rev 20165)
+++ trunk/wp-admin/css/wp-admin-rtl.dev.css        2012-03-09 23:23:10 UTC (rev 20166)
</span><span class="lines">@@ -203,98 +203,6 @@
</span><span class="cx">         margin: 1px 1px 1px 2px;
</span><span class="cx"> }
</span><span class="cx">
</span><del>-/* Distraction Free Writing mode
- * =Overlay Styles
--------------------------------------------------------------- */
-
-/* No RTL for now, this space intentionally left blank */
-
-/* =Overlay Body
--------------------------------------------------------------- */
-#wp-fullscreen-body {
-        right: 0;
-        left:auto;
-}
-
-#wp-fullscreen-tagline {
-        float: left;
-}
-
-/* =Top bar
--------------------------------------------------------------- */
-#fullscreen-topbar {
-        left:auto;
-        right: 0;
-}
-
-#wp-fullscreen-mode-bar,
-#wp-fullscreen-button-bar,
-#wp-fullscreen-close,
-#wp-fullscreen-count {
-        float: right;
-}
-
-#wp-fullscreen-save {
-        float: left;
-}
-
-#wp-fullscreen-save {
-        padding: 2px 5px 0 2px;
-}
-
-#wp-fullscreen-buttons > div {
-        float: right;
-}
-
-#wp-fullscreen-mode-bar {
-        padding: 1px 0 0 14px;
-}
-
-#wp-fullscreen-modes a {
-        float: right;
-        border-width: 1px 0 1px 1px;
-}
-
-#wp-fullscreen-modes a:first-child {
-        -webkit-border-top-left-radius: 0;
-        -webkit-border-top-right-radius: 3px;
-        -webkit-border-bottom-left-radius: 0;
-        -webkit-border-bottom-right-radius: 3px;
-        border-width: 1px;
-        border-top-left-radius: 0;
-        border-top-right-radius: 3px;
-        border-bottom-right-left: 0;
-        border-bottom-right-radius: 3px;
-}
-
-#wp-fullscreen-modes a:last-child {
-        -webkit-border-top-right-radius: 0;
-        -webkit-border-top-left-radius: 3px;
-        -webkit-border-bottom-right-radius: 0;
-        -webkit-border-bottom-left-radius: 3px;
-        border-top-right-radius: 0;
-        border-top-left-radius: 3px;
-        border-bottom-right-radius: 0;
-        border-bottom-left-radius: 3px;
-}
-
-#wp-fullscreen-save img,
-#wp-fullscreen-save span {
-        padding-right: 0;
-        padding-left: 4px;
-}
-
-/* =Thickbox Adjustments
--------------------------------------------------------------- */
-/* No RTL for now, this space intentionally left blank */
-
-
-/* =TinyMCE Adjustments
--------------------------------------------------------------- */
-/* No RTL for now, this space intentionally left blank */
-
-
-
</del><span class="cx"> /*------------------------------------------------------------------------------
</span><span class="cx"> 6.0 - Admin Header
</span><span class="cx"> ------------------------------------------------------------------------------*/
</span><span class="lines">@@ -2490,4 +2398,4 @@
</span><span class="cx"> .locale-he-il em {
</span><span class="cx">         font-style: normal;
</span><span class="cx">         font-weight: bold;
</span><del>-}
</del><span class="cx">\ No newline at end of file
</span><ins>+}
</ins></span></pre></div>
<a id="trunkwpadmincsswpadmindevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/wp-admin.dev.css (20165 => 20166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/wp-admin.dev.css        2012-03-09 01:45:40 UTC (rev 20165)
+++ trunk/wp-admin/css/wp-admin.dev.css        2012-03-09 23:23:10 UTC (rev 20166)
</span><span class="lines">@@ -632,53 +632,6 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-/* =CSS 3 transitions
--------------------------------------------------------------- */
-
-.fade-1000,
-.fade-600,
-.fade-400,
-.fade-300 {
-        opacity: 0;
-        -moz-transition-property: opacity;
-        -webkit-transition-property: opacity;
-        -o-transition-property: opacity;
-        transition-property: opacity;
-}
-
-.fade-1000 {
-        -moz-transition-duration: 1s;
-        -webkit-transition-duration: 1s;
-        -o-transition-duration: 1s;
-        transition-duration: 1s;
-}
-
-.fade-600 {
-        -moz-transition-duration: 0.6s;
-        -webkit-transition-duration: 0.6s;
-        -o-transition-duration: 0.6s;
-        transition-duration: 0.6s;
-}
-
-.fade-400 {
-        -moz-transition-duration: 0.4s;
-        -webkit-transition-duration: 0.4s;
-        -o-transition-duration: 0.4s;
-        transition-duration: 0.4s;
-}
-
-.fade-300 {
-        -moz-transition-duration: 0.3s;
-        -webkit-transition-duration: 0.3s;
-        -o-transition-duration: 0.3s;
-        transition-duration: 0.3s;
-}
-
-.fade-trigger {
-        opacity: 1;
-}
-
-
</del><span class="cx"> /*------------------------------------------------------------------------------
</span><span class="cx"> 1.0 - Text Styles
</span><span class="cx"> ------------------------------------------------------------------------------*/
</span><span class="lines">@@ -1139,261 +1092,6 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><del>-/* Distraction Free Writing mode
- * =Overlay Styles
--------------------------------------------------------------- */
-.fullscreen-overlay {
-        z-index: 149999;
-        display: none;
-        position: fixed;
-        top: 0;
-        bottom: 0;
-        left: 0;
-        right: 0;
-        filter: inherit;
-}
-
-.fullscreen-active .fullscreen-overlay,
-.fullscreen-active #wp-fullscreen-body {
-        display: block;
-}
-
-.fullscreen-fader {
-        z-index: 200000;
-}
-
-.fullscreen-active .fullscreen-fader {
-        display: none;
-}
-
-/* =Overlay Body
--------------------------------------------------------------- */
-#wp-fullscreen-body {
-        width: 100%;
-        z-index: 150005;
-        display: none;
-        position: absolute;
-        top: 0;
-        left: 0;
-}
-
-#wp-fullscreen-wrap {
-        margin: 0 auto 50px;
-        position: relative;
-        padding-top: 60px;
-}
-
-#wp-fullscreen-title {
- font-size: 1.7em;
- line-height: 100%;
- outline: medium none;
- padding: 6px 7px;
- width: 100%;
- margin-bottom: 30px;
-}
-
-#wp-fullscreen-container {
-        padding: 4px 10px 50px;
-}
-
-#wp-fullscreen-title,
-#wp-fullscreen-container {
-        -webkit-border-radius: 0;
-        border-radius: 0;
-        border: 1px dashed transparent;
-        background: transparent;
-        -moz-transition-property: border-color;
-        -moz-transition-duration: 0.6s;
-        -webkit-transition-property: border-color;
-        -webkit-transition-duration: 0.6s;
-        -o-transition-property: border-color;
-        -o-transition-duration: 0.6s;
-        transition-property: border-color;
-        transition-duration: 0.6s;
-}
-
-#wp_mce_fullscreen {
-        width: 100%;
-        min-height: 300px;
-        border: 0;
-        background: transparent;
-        font-family: Consolas, Monaco, monospace;
-        line-height: 1.6em;
-        padding: 0;
-        overflow-y: hidden;
-        outline: none;
-        resize: none;
-}
-
-#wp-fullscreen-tagline {
-        color: #BBBBBB;
-        font-size: 18px;
-        float: right;
-        padding-top: 5px;
-}
-
-/* =Top bar
--------------------------------------------------------------- */
-#fullscreen-topbar {
-        position: fixed;
-        top: 0;
-        left: 0;
-        z-index: 150050;
-        border-bottom-style: solid;
-        border-bottom-width: 1px;
-        min-width: 800px;
-        width: 100%;
-        height: 40px;
-}
-
-#wp-fullscreen-toolbar {
-        padding: 6px 10px 0;
-        clear: both;
-        max-width: 1100px;
-        min-width: 820px;
-        margin: 0 auto;
-}
-
-#wp-fullscreen-mode-bar,
-#wp-fullscreen-button-bar,
-#wp-fullscreen-close,
-#wp-fullscreen-count {
-        float: left;
-}
-
-#wp-fullscreen-save {
-        float: right;
-        padding: 2px 2px 0 5px;
-}
-
-#wp-fullscreen-count,
-#wp-fullscreen-close {
-        padding-top: 5px;
-}
-
-#wp-fullscreen-central-toolbar {
-        margin: auto;
-        padding: 0;
-}
-
-#wp-fullscreen-buttons > div {
-        float: left;
-}
-
-#wp-fullscreen-mode-bar {
-        padding: 1px 14px 0 0;
-}
-
-#wp-fullscreen-modes a {
-        display: block;
-        font-size: 11px;
-        text-decoration: none;
-        float: left;
-        margin: 1px 0 0 0;
-        padding: 2px 6px 2px;
-        border-width: 1px 1px 1px 0;
-        border-style: solid;
-        border-color: #bbb;
-        color: #777;
-        text-shadow: 0 1px 0 #fff;
-        background-color: #f4f4f4;
-        background-image: -moz-linear-gradient(bottom, #e4e4e4, #f9f9f9);
-        background-image: -webkit-gradient(linear, left bottom, left top, from(#e4e4e4), to(#f9f9f9));
-}
-
-#wp-fullscreen-modes a:hover,
-.wp-html-mode #wp-fullscreen-modes a:last-child,
-.wp-tmce-mode #wp-fullscreen-modes a:first-child {
-        color: #333;
-        border-color: #999;
-        background-color: #eee;
-        background-image: -moz-linear-gradient(bottom, #f9f9f9, #e0e0e0);
-        background-image: -webkit-gradient(linear, left bottom, left top, from(#f9f9f9), to(#e0e0e0));
-}
-
-#wp-fullscreen-modes a:first-child {
-        border-width: 1px;
-        -webkit-border-top-left-radius: 3px;
-        -webkit-border-bottom-left-radius: 3px;
-        border-top-left-radius: 3px;
-        border-bottom-left-radius: 3px;
-}
-
-#wp-fullscreen-modes a:last-child {
-        -webkit-border-top-right-radius: 3px;
-        -webkit-border-bottom-right-radius: 3px;
-        border-top-right-radius: 3px;
-        border-bottom-right-radius: 3px;
-}
-
-#wp-fullscreen-buttons .active a {
-        background: inherit;
-}
-
-#wp-fullscreen-buttons .hidden {
-        display: none;
-}
-
-#wp-fullscreen-buttons .disabled {
-        opacity: 0.5;
-}
-
-.wp-html-mode #wp-fullscreen-buttons div {
-        display: none;
-}
-
-.wp-html-mode #wp-fullscreen-buttons div.wp-fullscreen-both {
-        display: block;
-}
-
-#fullscreen-topbar.fullscreen-make-sticky {
-        display: block !important;
-}
-
-#wp-fullscreen-save img {
-        vertical-align: middle;
-}
-
-#wp-fullscreen-save img,
-#wp-fullscreen-save span {
-        padding-right: 4px;
-        display: none;
-}
-
-#wp-fullscreen-buttons .mce_image .mce_image {
-        background-image: url('../images/menu.png?ver=20120201');
-        background-position: -124px -38px;
-}
-
-#wp-fullscreen-buttons .mce_image .mce_image:hover {
-        background-position: -124px -6px;
-}
-
-/* =Thickbox Adjustments
--------------------------------------------------------------- */
-.fullscreen-active #TB_overlay {
-        z-index: 150100;
-}
-
-.fullscreen-active #TB_window {
-        z-index: 150102;
-}
-
-/* =TinyMCE Adjustments
--------------------------------------------------------------- */
-#wp_mce_fullscreen_ifr {
-        background: transparent;
-}
-
-#wp_mce_fullscreen_parent #wp_mce_fullscreen_tbl tr.mceFirst {
-        display : none;
-}
-
-#wp-fullscreen-container .wp_themeSkin table td {
-        vertical-align: top;
-}
-
-
</del><span class="cx"> /*------------------------------------------------------------------------------
</span><span class="cx"> 6.0 - Admin Header
</span><span class="cx"> ------------------------------------------------------------------------------*/
</span></span></pre></div>
<a id="trunkwpadminjswpfullscreendevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/wp-fullscreen.dev.js (20165 => 20166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/wp-fullscreen.dev.js        2012-03-09 01:45:40 UTC (rev 20165)
+++ trunk/wp-admin/js/wp-fullscreen.dev.js        2012-03-09 23:23:10 UTC (rev 20166)
</span><span class="lines">@@ -138,21 +138,17 @@
</span><span class="cx">                         return;
</span><span class="cx">
</span><span class="cx">                 // Settings can be added or changed by defining "wp_fullscreen_settings" JS object.
</span><del>-                // This can be done by defining it as PHP associative array, json encoding it and passing it to JS with:
-                // wp_add_script_before( 'wp-fullscreen', 'wp_fullscreen_settings = ' . $json_encoded_array . ';' );
</del><span class="cx">                 if ( typeof(wp_fullscreen_settings) == 'object' )
</span><span class="cx">                         $.extend( s, wp_fullscreen_settings );
</span><span class="cx">
</span><span class="cx">                 s.editor_id = wpActiveEditor || 'content';
</span><span class="cx">
</span><del>-                if ( !s.title_id ) {
-                        if ( $('input#title').length && s.editor_id == 'content' )
-                                s.title_id = 'title';
-                        else if ( $('input#' + s.editor_id + '-title').length ) // the title input field should have [editor_id]-title HTML ID to be auto detected
-                                s.title_id = s.editor_id + '-title';
-                        else
-                                $('#wp-fullscreen-title, #wp-fullscreen-title-prompt-text').hide();
-                }
</del><ins>+                if ( $('input#title').length && s.editor_id == 'content' )
+                        s.title_id = 'title';
+                else if ( $('input#' + s.editor_id + '-title').length ) // the title input field should have [editor_id]-title HTML ID to be auto detected
+                        s.title_id = s.editor_id + '-title';
+                else
+                        $('#wp-fullscreen-title, #wp-fullscreen-title-prompt-text').hide();
</ins><span class="cx">
</span><span class="cx">                 s.mode = $('#' + s.editor_id).is(':hidden') ? 'tinymce' : 'html';
</span><span class="cx">                 s.qt_canvas = $('#' + s.editor_id).get(0);
</span></span></pre></div>
<a id="trunkwpincludesclasswpeditorphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/class-wp-editor.php (20165 => 20166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/class-wp-editor.php        2012-03-09 01:45:40 UTC (rev 20165)
+++ trunk/wp-includes/class-wp-editor.php        2012-03-09 23:23:10 UTC (rev 20166)
</span><span class="lines">@@ -618,7 +618,7 @@
</span><span class="cx">                 $dfw_width = get_user_setting( 'dfw_width', $width );
</span><span class="cx">                 $save = isset($post->post_status) && $post->post_status == 'publish' ? __('Update') : __('Save');
</span><span class="cx">         ?>
</span><del>-        <div id="wp-fullscreen-body">
</del><ins>+        <div id="wp-fullscreen-body"<?php if ( is_rtl() ) echo ' class="rtl"'; ?>>
</ins><span class="cx">         <div id="fullscreen-topbar">
</span><span class="cx">                 <div id="wp-fullscreen-toolbar">
</span><span class="cx">                         <div id="wp-fullscreen-close"><a href="#" onclick="fullscreen.off();return false;"><?php _e('Exit fullscreen'); ?></a></div>
</span><span class="lines">@@ -669,7 +669,7 @@
</span><span class="cx">
</span><span class="cx">                         <div id="wp-fullscreen-save">
</span><span class="cx">                                 <span><?php if ( $post->post_status == 'publish' ) _e('Updated.'); else _e('Saved.'); ?></span>
</span><del>-                                <img src="images/wpspin_light.gif" alt="" />
</del><ins>+                                <img src="<?php echo admin_url('images/wpspin_light.gif'); ?>" alt="" />
</ins><span class="cx">                                 <input type="button" class="button-primary" value="<?php echo $save; ?>" onclick="fullscreen.save();" />
</span><span class="cx">                         </div>
</span><span class="cx">
</span></span></pre></div>
<a id="trunkwpincludescsseditorbuttonsdevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/css/editor-buttons.dev.css (20165 => 20166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/css/editor-buttons.dev.css        2012-03-09 01:45:40 UTC (rev 20165)
+++ trunk/wp-includes/css/editor-buttons.dev.css        2012-03-09 23:23:10 UTC (rev 20166)
</span><span class="lines">@@ -1614,3 +1614,408 @@
</span><span class="cx"> .clearlooks2 .mceFocus .mceTop span {
</span><span class="cx">         color: #e5e5e5;
</span><span class="cx"> }
</span><ins>+
+
+/* Distraction Free Writing mode
+ * =Overlay Styles
+-------------------------------------------------------------- */
+.fullscreen-overlay {
+        z-index: 149999;
+        display: none;
+        position: fixed;
+        top: 0;
+        bottom: 0;
+        left: 0;
+        right: 0;
+        filter: inherit;
+}
+
+.fullscreen-active .fullscreen-overlay,
+.fullscreen-active #wp-fullscreen-body {
+        display: block;
+}
+
+.fullscreen-fader {
+        z-index: 200000;
+}
+
+.fullscreen-active .fullscreen-fader {
+        display: none;
+}
+
+/* =Overlay Body
+-------------------------------------------------------------- */
+#wp-fullscreen-body {
+        width: 100%;
+        z-index: 150005;
+        display: none;
+        position: absolute;
+        top: 0;
+        left: 0;
+        font-size: 12px;
+}
+
+#wp-fullscreen-wrap {
+        margin: 0 auto 50px;
+        position: relative;
+        padding-top: 60px;
+}
+
+#wp-fullscreen-title {
+ font-size: 1.7em;
+ line-height: 100%;
+ outline: medium none;
+ padding: 6px 7px;
+ width: 100%;
+ margin-bottom: 30px;
+}
+
+#wp-fullscreen-container {
+        padding: 4px 10px 50px;
+}
+
+#wp-fullscreen-title,
+#wp-fullscreen-container {
+        -webkit-border-radius: 0;
+        border-radius: 0;
+        border: 1px dashed transparent;
+        background: transparent;
+        -moz-transition-property: border-color;
+        -moz-transition-duration: 0.6s;
+        -webkit-transition-property: border-color;
+        -webkit-transition-duration: 0.6s;
+        -o-transition-property: border-color;
+        -o-transition-duration: 0.6s;
+        transition-property: border-color;
+        transition-duration: 0.6s;
+}
+
+#wp_mce_fullscreen {
+        width: 100%;
+        min-height: 300px;
+        border: 0;
+        background: transparent;
+        font-family: Consolas, Monaco, monospace;
+        line-height: 1.6em;
+        padding: 0;
+        overflow-y: hidden;
+        outline: none;
+        resize: none;
+}
+
+#wp-fullscreen-tagline {
+        color: #BBBBBB;
+        font-size: 18px;
+        float: right;
+        padding-top: 5px;
+}
+
+/* =Top bar
+-------------------------------------------------------------- */
+#fullscreen-topbar {
+        position: fixed;
+        top: 0;
+        left: 0;
+        z-index: 150050;
+        border-bottom-style: solid;
+        border-bottom-width: 1px;
+        min-width: 800px;
+        width: 100%;
+        height: 40px;
+}
+
+#wp-fullscreen-toolbar {
+        padding: 6px 10px 0;
+        clear: both;
+        max-width: 1100px;
+        min-width: 820px;
+        margin: 0 auto;
+}
+
+#wp-fullscreen-mode-bar,
+#wp-fullscreen-button-bar,
+#wp-fullscreen-close,
+#wp-fullscreen-count {
+        float: left;
+}
+
+#wp-fullscreen-save {
+        float: right;
+        padding: 2px 2px 0 5px;
+}
+
+#wp-fullscreen-count,
+#wp-fullscreen-close {
+        padding-top: 5px;
+}
+
+#wp-fullscreen-central-toolbar {
+        margin: auto;
+        padding: 0;
+}
+
+#wp-fullscreen-buttons > div {
+        float: left;
+}
+
+#wp-fullscreen-mode-bar {
+        padding: 1px 14px 0 0;
+}
+
+#wp-fullscreen-modes a {
+        display: block;
+        font-size: 11px;
+        text-decoration: none;
+        float: left;
+        margin: 1px 0 0 0;
+        padding: 2px 6px 2px;
+        border-width: 1px 1px 1px 0;
+        border-style: solid;
+        border-color: #bbb;
+        color: #777;
+        text-shadow: 0 1px 0 #fff;
+        background-color: #f4f4f4;
+        background-image: -moz-linear-gradient(bottom, #e4e4e4, #f9f9f9);
+        background-image: -webkit-gradient(linear, left bottom, left top, from(#e4e4e4), to(#f9f9f9));
+}
+
+#wp-fullscreen-modes a:hover,
+.wp-html-mode #wp-fullscreen-modes a:last-child,
+.wp-tmce-mode #wp-fullscreen-modes a:first-child {
+        color: #333;
+        border-color: #999;
+        background-color: #eee;
+        background-image: -moz-linear-gradient(bottom, #f9f9f9, #e0e0e0);
+        background-image: -webkit-gradient(linear, left bottom, left top, from(#f9f9f9), to(#e0e0e0));
+}
+
+#wp-fullscreen-modes a:first-child {
+        border-width: 1px;
+        -webkit-border-top-left-radius: 3px;
+        -webkit-border-bottom-left-radius: 3px;
+        border-top-left-radius: 3px;
+        border-bottom-left-radius: 3px;
+}
+
+#wp-fullscreen-modes a:last-child {
+        -webkit-border-top-right-radius: 3px;
+        -webkit-border-bottom-right-radius: 3px;
+        border-top-right-radius: 3px;
+        border-bottom-right-radius: 3px;
+}
+
+#wp-fullscreen-buttons .active a {
+        background: inherit;
+}
+
+#wp-fullscreen-buttons .hidden {
+        display: none;
+}
+
+#wp-fullscreen-buttons .disabled {
+        opacity: 0.5;
+}
+
+.wp-html-mode #wp-fullscreen-buttons div {
+        display: none;
+}
+
+.wp-html-mode #wp-fullscreen-buttons div.wp-fullscreen-both {
+        display: block;
+}
+
+#fullscreen-topbar.fullscreen-make-sticky {
+        display: block !important;
+}
+
+#wp-fullscreen-save img {
+        vertical-align: middle;
+}
+
+#wp-fullscreen-save img,
+#wp-fullscreen-save span {
+        padding-right: 4px;
+        display: none;
+}
+
+#wp-fullscreen-buttons .mce_image .mce_image {
+        background-image: url('../../wp-admin/images/media-button.png?ver=20120201');
+        background-position: 3px 3px;
+}
+
+/* =Thickbox Adjustments
+-------------------------------------------------------------- */
+.fullscreen-active #TB_overlay {
+        z-index: 150100;
+}
+
+.fullscreen-active #TB_window {
+        z-index: 150102;
+}
+
+/* =TinyMCE Adjustments
+-------------------------------------------------------------- */
+#wp_mce_fullscreen_ifr {
+        background: transparent;
+}
+
+#wp_mce_fullscreen_parent #wp_mce_fullscreen_tbl tr.mceFirst {
+        display : none;
+}
+
+#wp-fullscreen-container .wp_themeSkin table td {
+        vertical-align: top;
+}
+
+/* Colors */
+.fullscreen-overlay {
+        background: #fff;
+}
+
+.wp-fullscreen-focus #wp-fullscreen-title,
+.wp-fullscreen-focus #wp-fullscreen-container {
+        border-color: #ccc;
+}
+
+#fullscreen-topbar {
+        border-bottom-color: #DFDFDF;
+        background-color: #f1f1f1; /* Fallback */
+        background-image: -ms-linear-gradient(top, #f9f9f9, #ececec); /* IE10 */
+        background-image: -moz-linear-gradient(top, #f9f9f9, #ececec); /* Firefox */
+        background-image: -o-linear-gradient(top, #f9f9f9, #ececec); /* Opera */
+        background-image: -webkit-gradient(linear, left top, left bottom, from(#f9f9f9), to(#ececec)); /* old Webkit */
+        background-image: -webkit-linear-gradient(top, #f9f9f9, #ececec); /* new Webkit */
+        background-image: linear-gradient(top, #f9f9f9, #ececec); /* proposed W3C Markup */
+}
+
+/* =CSS 3 transitions
+-------------------------------------------------------------- */
+
+.fade-1000,
+.fade-600,
+.fade-400,
+.fade-300 {
+        opacity: 0;
+        -moz-transition-property: opacity;
+        -webkit-transition-property: opacity;
+        -o-transition-property: opacity;
+        transition-property: opacity;
+}
+
+.fade-1000 {
+        -moz-transition-duration: 1s;
+        -webkit-transition-duration: 1s;
+        -o-transition-duration: 1s;
+        transition-duration: 1s;
+}
+
+.fade-600 {
+        -moz-transition-duration: 0.6s;
+        -webkit-transition-duration: 0.6s;
+        -o-transition-duration: 0.6s;
+        transition-duration: 0.6s;
+}
+
+.fade-400 {
+        -moz-transition-duration: 0.4s;
+        -webkit-transition-duration: 0.4s;
+        -o-transition-duration: 0.4s;
+        transition-duration: 0.4s;
+}
+
+.fade-300 {
+        -moz-transition-duration: 0.3s;
+        -webkit-transition-duration: 0.3s;
+        -o-transition-duration: 0.3s;
+        transition-duration: 0.3s;
+}
+
+.fade-trigger {
+        opacity: 1;
+}
+
+/* Distraction Free Writing - RTL
+ * =Overlay Styles
+-------------------------------------------------------------- */
+
+/* No RTL for now, this space intentionally left blank */
+
+/* =Overlay Body
+-------------------------------------------------------------- */
+.rtl #wp-fullscreen-tagline {
+        float: left;
+}
+
+/* =Top bar
+-------------------------------------------------------------- */
+.rtl #fullscreen-topbar {
+        left:auto;
+        right: 0;
+}
+
+.rtl #wp-fullscreen-mode-bar,
+.rtl #wp-fullscreen-button-bar,
+.rtl #wp-fullscreen-close,
+.rtl #wp-fullscreen-count {
+        float: right;
+}
+
+.rtl #wp-fullscreen-save {
+        float: left;
+}
+
+.rtl #wp-fullscreen-save {
+        padding: 2px 5px 0 2px;
+}
+
+.rtl #wp-fullscreen-buttons > div {
+        float: right;
+}
+
+.rtl #wp-fullscreen-mode-bar {
+        padding: 1px 0 0 14px;
+}
+
+.rtl #wp-fullscreen-modes a {
+        float: right;
+        border-width: 1px 0 1px 1px;
+}
+
+.rtl #wp-fullscreen-modes a:first-child {
+        -webkit-border-top-left-radius: 0;
+        -webkit-border-top-right-radius: 3px;
+        -webkit-border-bottom-left-radius: 0;
+        -webkit-border-bottom-right-radius: 3px;
+        border-width: 1px;
+        border-top-left-radius: 0;
+        border-top-right-radius: 3px;
+        border-bottom-right-left: 0;
+        border-bottom-right-radius: 3px;
+}
+
+.rtl #wp-fullscreen-modes a:last-child {
+        -webkit-border-top-right-radius: 0;
+        -webkit-border-top-left-radius: 3px;
+        -webkit-border-bottom-right-radius: 0;
+        -webkit-border-bottom-left-radius: 3px;
+        border-top-right-radius: 0;
+        border-top-left-radius: 3px;
+        border-bottom-right-radius: 0;
+        border-bottom-left-radius: 3px;
+}
+
+.rtl #wp-fullscreen-save img,
+.rtl #wp-fullscreen-save span {
+        padding-right: 0;
+        padding-left: 4px;
+}
+
+/* =Thickbox Adjustments
+-------------------------------------------------------------- */
+/* No RTL for now, this space intentionally left blank */
+
+
+/* =TinyMCE Adjustments
+-------------------------------------------------------------- */
+/* No RTL for now, this space intentionally left blank */
+
</ins></span></pre></div>
<a id="trunkwpincludesjsquicktagsdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/quicktags.dev.js (20165 => 20166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/quicktags.dev.js        2012-03-09 01:45:40 UTC (rev 20165)
+++ trunk/wp-includes/js/quicktags.dev.js        2012-03-09 23:23:10 UTC (rev 20166)
</span><span class="lines">@@ -599,7 +599,7 @@
</span><span class="cx">         };
</span><span class="cx">         qt.FullscreenButton.prototype = new qt.Button();
</span><span class="cx">         qt.FullscreenButton.prototype.callback = function(e, c) {
</span><del>-                if ( c.id != 'content' || typeof(fullscreen) == 'undefined' )
</del><ins>+                if ( !c.id || typeof(fullscreen) == 'undefined' )
</ins><span class="cx">                         return;
</span><span class="cx">
</span><span class="cx">                 fullscreen.on();
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswpfullscreeneditor_plugin_srcjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js (20165 => 20166)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js        2012-03-09 01:45:40 UTC (rev 20165)
+++ trunk/wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js        2012-03-09 23:23:10 UTC (rev 20166)
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx">                         ed.addCommand('wpFullScreenInit', function() {
</span><span class="cx">                                 var d, b, fsed;
</span><span class="cx">
</span><del>-                                ed = tinymce.get('content');
</del><ins>+                                ed = tinyMCE.activeEditor;
</ins><span class="cx">                                 d = ed.getDoc();
</span><span class="cx">                                 b = d.body;
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>