<!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>[21212] trunk: Switch &quot;HTML&quot; tab to &quot;Text&quot; in DFW mode.</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/21212">21212</a></dd>
<dt>Author</dt> <dd>markjaquith</dd>
<dt>Date</dt> <dd>2012-07-05 15:28:13 +0000 (Thu, 05 Jul 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Switch &quot;HTML&quot; tab to &quot;Text&quot; in DFW mode. Update documentation and inline comments to refer to the &quot;Text&quot; tab or mode instead of &quot;HTML&quot;. see <a href="http://core.trac.wordpress.org/ticket/20993">#20993</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmineditformadvancedphp">trunk/wp-admin/edit-form-advanced.php</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="#trunkwpincludesjstinymcewpmcehelpphp">trunk/wp-includes/js/tinymce/wp-mce-help.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmineditformadvancedphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-form-advanced.php (21211 => 21212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-form-advanced.php        2012-07-05 15:19:01 UTC (rev 21211)
+++ trunk/wp-admin/edit-form-advanced.php        2012-07-05 15:28:13 UTC (rev 21212)
</span><span class="lines">@@ -173,7 +173,7 @@
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><span class="cx">         $title_and_editor  = '&lt;p&gt;' . __('&lt;strong&gt;Title&lt;/strong&gt; - Enter a title for your post. After you enter a title, you&amp;#8217;ll see the permalink below, which you can edit.') . '&lt;/p&gt;';
</span><del>-        $title_and_editor .= '&lt;p&gt;' . __('&lt;strong&gt;Post editor&lt;/strong&gt; - Enter the text for your post. There are two modes of editing: Visual and HTML. Choose the mode by clicking on the appropriate tab. Visual mode gives you a WYSIWYG editor. Click the last icon in the row to get a second row of controls. The HTML mode allows you to enter raw HTML along with your post text. You can insert media files by clicking the icons above the post editor and following the directions. You can go to the distraction-free writing screen via the Fullscreen icon in Visual mode (second to last in the top row) or the Fullscreen button in HTML mode (last in the row). Once there, you can make buttons visible by hovering over the top area. Exit Fullscreen back to the regular post editor.') . '&lt;/p&gt;';
</del><ins>+        $title_and_editor .= '&lt;p&gt;' . __('&lt;strong&gt;Post editor&lt;/strong&gt; - Enter the text for your post. There are two modes of editing: Visual and Text. Choose the mode by clicking on the appropriate tab. Visual mode gives you a WYSIWYG editor. Click the last icon in the row to get a second row of controls. The Text mode allows you to enter HTML along with your post text. Line breaks will be converted to paragraphs automatically. You can insert media files by clicking the icons above the post editor and following the directions. You can go to the distraction-free writing screen via the Fullscreen icon in Visual mode (second to last in the top row) or the Fullscreen button in Text mode (last in the row). Once there, you can make buttons visible by hovering over the top area. Exit Fullscreen back to the regular post editor.') . '&lt;/p&gt;';
</ins><span class="cx"> 
</span><span class="cx">         get_current_screen()-&gt;add_help_tab( array(
</span><span class="cx">                 'id'      =&gt; 'title-post-editor',
</span><span class="lines">@@ -214,7 +214,7 @@
</span><span class="cx">         );
</span><span class="cx"> } elseif ( 'page' == $post_type ) {
</span><span class="cx">         $about_pages = '&lt;p&gt;' . __('Pages are similar to Posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest Pages under other Pages by making one the &amp;#8220;Parent&amp;#8221; of the other, creating a group of Pages.') . '&lt;/p&gt;' .
</span><del>-                '&lt;p&gt;' . __('Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. This screen also has the distraction-free writing space, available in both the Visual and HTML modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box:') . '&lt;/p&gt;';
</del><ins>+                '&lt;p&gt;' . __('Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. This screen also has the distraction-free writing space, available in both the Visual and Text modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box:') . '&lt;/p&gt;';
</ins><span class="cx"> 
</span><span class="cx">         get_current_screen()-&gt;add_help_tab( array(
</span><span class="cx">                 'id'      =&gt; 'about-pages',
</span></span></pre></div>
<a id="trunkwpadminjswpfullscreendevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/wp-fullscreen.dev.js (21211 => 21212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/wp-fullscreen.dev.js        2012-07-05 15:19:01 UTC (rev 21211)
+++ trunk/wp-admin/js/wp-fullscreen.dev.js        2012-07-05 15:28:13 UTC (rev 21212)
</span><span class="lines">@@ -576,7 +576,7 @@
</span><span class="cx">                                 return false;
</span><span class="cx">                         });
</span><span class="cx"> 
</span><del>-                        // word count in HTML mode
</del><ins>+                        // word count in Text mode
</ins><span class="cx">                         if ( typeof(wpWordCount) != 'undefined' ) {
</span><span class="cx"> 
</span><span class="cx">                                 txtarea.keyup( function(e) {
</span></span></pre></div>
<a id="trunkwpincludesclasswpeditorphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/class-wp-editor.php (21211 => 21212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/class-wp-editor.php        2012-07-05 15:19:01 UTC (rev 21211)
+++ trunk/wp-includes/class-wp-editor.php        2012-07-05 15:28:13 UTC (rev 21212)
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx">                         'textarea_name' =&gt; $editor_id, // set the textarea name to something different, square brackets [] can be used here
</span><span class="cx">                         'textarea_rows' =&gt; get_option('default_post_edit_rows', 10), // rows=&quot;...&quot;
</span><span class="cx">                         'tabindex' =&gt; '',
</span><del>-                        'editor_css' =&gt; '', // intended for extra styles for both visual and HTML editors buttons, needs to include the &lt;style&gt; tags, can use &quot;scoped&quot;.
</del><ins>+                        'editor_css' =&gt; '', // intended for extra styles for both visual and Text editors buttons, needs to include the &lt;style&gt; tags, can use &quot;scoped&quot;.
</ins><span class="cx">                         'editor_class' =&gt; '', // add extra class(es) to the editor textarea
</span><span class="cx">                         'teeny' =&gt; false, // output the minimal editor config used in Press This
</span><span class="cx">                         'dfw' =&gt; false, // replace the default fullscreen with DFW (needs specific DOM elements and css)
</span><span class="lines">@@ -624,7 +624,7 @@
</span><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;wp-fullscreen-mode-bar&quot;&gt;&lt;div id=&quot;wp-fullscreen-modes&quot;&gt;
</span><span class="cx">                                 &lt;a href=&quot;#&quot; onclick=&quot;fullscreen.switchmode('tinymce');return false;&quot;&gt;&lt;?php _e('Visual'); ?&gt;&lt;/a&gt;
</span><del>-                                &lt;a href=&quot;#&quot; onclick=&quot;fullscreen.switchmode('html');return false;&quot;&gt;&lt;?php _e('HTML'); ?&gt;&lt;/a&gt;
</del><ins>+                                &lt;a href=&quot;#&quot; onclick=&quot;fullscreen.switchmode('html');return false;&quot;&gt;&lt;?php _e('Text'); ?&gt;&lt;/a&gt;
</ins><span class="cx">                         &lt;/div&gt;&lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;wp-fullscreen-button-bar&quot;&gt;&lt;div id=&quot;wp-fullscreen-buttons&quot; class=&quot;wp_themeSkin&quot;&gt;
</span></span></pre></div>
<a id="trunkwpincludesjstinymcewpmcehelpphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/wp-mce-help.php (21211 => 21212)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/wp-mce-help.php        2012-07-05 15:19:01 UTC (rev 21211)
+++ trunk/wp-includes/js/tinymce/wp-mce-help.php        2012-07-05 15:28:13 UTC (rev 21212)
</span><span class="lines">@@ -222,10 +222,10 @@
</span><span class="cx">         &lt;p&gt;&lt;?php _e('There is a button in the editor toolbar for inserting images that are already hosted somewhere on the internet. If you have a URL for an image, click this button and enter the URL in the box which appears.') ?&gt;&lt;/p&gt;
</span><span class="cx">         &lt;p&gt;&lt;?php _e('If you need to upload an image or another media file from your computer, you can use the Media Library button above the editor. The media library will attempt to create a thumbnail-sized copy from each uploaded image. To insert your image into the post, first click on the thumbnail to reveal a menu of options. When you have selected the options you like, click &quot;Insert into Post&quot; and your image or file will appear in the post you are editing.') ?&gt;&lt;/p&gt;
</span><span class="cx">         &lt;h3&gt;&lt;?php _e('HTML in the Rich Editor') ?&gt;&lt;/h3&gt;
</span><del>-        &lt;p&gt;&lt;?php _e('Any HTML entered directly into the rich editor will show up as text when the post is viewed. What you see is what you get. When you want to include HTML elements that cannot be generated with the toolbar buttons, you must enter it by hand in the HTML editor. Examples are tables and &amp;lt;code&amp;gt;. To do this, click the HTML tab and edit the code, then switch back to Visual mode. If the code is valid and understood by the editor, you should see it rendered immediately.') ?&gt;&lt;/p&gt;
</del><ins>+        &lt;p&gt;&lt;?php _e('Any HTML entered directly into the rich editor will show up as text when the post is viewed. What you see is what you get. When you want to include HTML elements that cannot be generated with the toolbar buttons, you must enter it by hand in the Text editor. Examples are tables and &amp;lt;code&amp;gt;. To do this, click the Text tab and edit the code, then switch back to Visual mode. If the code is valid and understood by the editor, you should see it rendered immediately.') ?&gt;&lt;/p&gt;
</ins><span class="cx">         &lt;h3&gt;&lt;?php _e('Pasting in the Rich Editor') ?&gt;&lt;/h3&gt;
</span><del>-        &lt;p&gt;&lt;?php _e('When pasting content from another web page the results can be inconsistent and depend on your browser and on the web page you are pasting from. The editor tries to correct any invalid HTML code that was pasted, but for best results try using the HTML tab or one of the paste buttons that are on the second row. Alternatively try pasting paragraph by paragraph. In most browsers to select one paragraph at a time, triple-click on it.') ?&gt;&lt;/p&gt;
-        &lt;p&gt;&lt;?php _e('Pasting content from another application, like Word or Excel, is best done with the Paste from Word button on the second row, or in HTML mode.') ?&gt;&lt;/p&gt;
</del><ins>+        &lt;p&gt;&lt;?php _e('When pasting content from another web page the results can be inconsistent and depend on your browser and on the web page you are pasting from. The editor tries to correct any invalid HTML code that was pasted, but for best results try using the Text tab or one of the paste buttons that are on the second row. Alternatively try pasting paragraph by paragraph. In most browsers to select one paragraph at a time, triple-click on it.') ?&gt;&lt;/p&gt;
+        &lt;p&gt;&lt;?php _e('Pasting content from another application, like Word or Excel, is best done with the Paste from Word button on the second row, or in Text mode.') ?&gt;&lt;/p&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div id=&quot;content3&quot; class=&quot;hidden&quot;&gt;
</span><span class="lines">@@ -258,7 +258,7 @@
</span><span class="cx">                 &lt;tr&gt;&lt;th&gt;q&lt;/th&gt;&lt;td&gt;&lt;?php _e('Quote') ?&gt;&lt;/td&gt;&lt;th&gt;m&lt;/th&gt;&lt;td&gt;&lt;?php _e('Insert Image') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</span><span class="cx">                 &lt;tr&gt;&lt;th&gt;g&lt;/th&gt;&lt;td&gt;&lt;?php _e('Full Screen') ?&gt;&lt;/td&gt;&lt;th&gt;t&lt;/th&gt;&lt;td&gt;&lt;?php _e('Insert More Tag') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</span><span class="cx">                 &lt;tr&gt;&lt;th&gt;p&lt;/th&gt;&lt;td&gt;&lt;?php _e('Insert Page Break tag') ?&gt;&lt;/td&gt;&lt;th&gt;h&lt;/th&gt;&lt;td&gt;&lt;?php _e('Help') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</span><del>-                &lt;tr&gt;&lt;th&gt;e&lt;/th&gt;&lt;td colspan=&quot;3&quot;&gt;&lt;?php _e('Switch to HTML mode') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</del><ins>+                &lt;tr&gt;&lt;th&gt;e&lt;/th&gt;&lt;td colspan=&quot;3&quot;&gt;&lt;?php _e('Switch to Text mode') ?&gt;&lt;/td&gt;&lt;/tr&gt;
</ins><span class="cx"> 
</span><span class="cx">                 &lt;tr&gt;&lt;th colspan=&quot;4&quot; style=&quot;font-weight: normal;padding: 15px 10px 10px;&quot;&gt;&lt;?php _e('Editor width in Distraction-free writing mode:'); ?&gt;&lt;/th&gt;&lt;/tr&gt;
</span><span class="cx">                 &lt;tr&gt;&lt;th&gt;&lt;span class=&quot;win&quot;&gt;Alt +&lt;/span&gt;&lt;span class=&quot;mac&quot;&gt;Ctrl +&lt;/span&gt;&lt;/th&gt;&lt;td&gt;&lt;?php _e('Wider') ?&gt;&lt;/td&gt;
</span></span></pre>
</div>
</div>

</body>
</html>