]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/tinymce/themes/advanced/source_editor.htm
Wordpress 2.3.2
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / themes / advanced / source_editor.htm
index d8329ad5a3adbc1ed664a46b39c222f1179b8841..bb3a79b00720560ec1b8e8daebe2b760043cdd50 100644 (file)
@@ -4,46 +4,29 @@
        <title>{$lang_theme_code_title}</title>
        <script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
        <script language="javascript" type="text/javascript" src="jscripts/source_editor.js"></script>
-       <style type="text/css">
-               #insert, #cancel {
-                       font: 13px Verdana, Arial, Helvetica, sans-serif;
-                       height: auto;
-                       width: auto;
-                       background-color: transparent;
-                       background-image: url(../../../../../wp-admin/images/fade-butt.png);
-                       background-repeat: repeat;
-                       border: 3px double;
-                       border-right-color: rgb(153, 153, 153);
-                       border-bottom-color: rgb(153, 153, 153);
-                       border-left-color: rgb(204, 204, 204);
-                       border-top-color: rgb(204, 204, 204);
-                       color: rgb(51, 51, 51);
-                       padding: 0.25em 0.75em;
-               }
-               #insert:active, #cancel:active {
-                       background: #f4f4f4;
-                       border-left-color: #999;
-                       border-top-color: #999;
-               }
-       </style>
+       <base target="_self" />
 </head>
-<body onload="tinyMCEPopup.executeOnLoad('onLoadInit();');document.getElementById('htmlSource').focus();" onresize="resizeInputs();" style="display: none">
+<!-- WordPress: extra onload stuff is WP! -->
+<body onload="tinyMCEPopup.executeOnLoad('onLoadInit();');document.body.style.display='';document.getElementById('htmlSource').focus();" onresize="resizeInputs();" style="display: none">
        <form name="source" onsubmit="saveContent();" action="#">
                <div style="float: left" class="title">{$lang_theme_code_title}</div>
 
-               <div style="float: right">
-                       <script language="javascript" type="text/javascript">renderWordWrap();</script>
+               <div id="wrapline" style="float: right">
+                       <input type="checkbox" name="wraped" id="wraped" onclick="toggleWordWrap(this);" class="wordWrapCode" /><label for="wraped">{$lang_theme_code_wordwrap}</label>
                </div>
 
-               <textarea name="htmlSource" id="htmlSource" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft"></textarea>
+               <br style="clear: both" />
+
+               <textarea name="htmlSource" id="htmlSource" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,monospace; font-size: 12px" dir="ltr" wrap="off"></textarea>
 
                <div class="mceActionPanel">
+                       <!-- WordPress: reversed buttons! -->
                        <div style="float: left">
-                               <input type="button" name="insert" value="{$lang_update}" onclick="saveContent();" id="insert" />
+                               <input type="button" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
                        </div>
 
                        <div style="float: right">
-                               <input type="button" name="cancel" value="{$lang_cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
+                               <input type="submit" name="insert" value="{$lang_update}" onclick="saveContent();" id="insert" />
                        </div>
                </div>
        </form>