Author: nick
Date: 2007-11-03 15:18:10 -0400 (Sat, 03 Nov 2007)
New Revision: 10365

Modified:
   
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-admin/edit-form-advanced.php
   
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-content/mu-plugins/wordpress-in-openplans.php
   
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-includes/general-template.php
Log:
fixed xina to work in WP in IE

Modified: 
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-admin/edit-form-advanced.php
===================================================================
--- 
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-admin/edit-form-advanced.php
  2007-11-03 19:13:42 UTC (rev 10364)
+++ 
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-admin/edit-form-advanced.php
  2007-11-03 19:18:10 UTC (rev 10365)
@@ -6,33 +6,7 @@
 $messages[3] = __('Custom field deleted.');
 ?>
 
-<!-- TOPP addition -->
-<link type="text/css" rel="stylesheet" title="blue-look" 
href="/++resource++xinha/skins/blue-look/skin.css" />
-<link type="text/css" rel="alternate stylesheet" title="green-look" 
href="/++resource++xinha/skins/green-look/skin.css" />
-<link type="text/css" rel="alternate stylesheet" title="xp-blue" 
href="/++resource++xinha/skins/xp-blue/skin.css" />
-<link type="text/css" rel="alternate stylesheet" title="xp-green" 
href="/++resource++xinha/skins/xp-green/skin.css" />
-<link type="text/css" rel="alternate stylesheet" title="inditreuse" 
href="/++resource++xinha/skins/inditreuse/skin.css" />
-<link type="text/css" rel="alternate stylesheet" title="blue-metallic" 
href="/++resource++xinha/skins/blue-metallic/skin.css" />
 
-<style>
-table.htmlarea {
-
-    width: 100% !important;
-    height: 300px;
-}
-</style>
-
-<script type="text/javascript">
-var _editor_url = "/++resource++xinha/";
-var _editor_lang = "en";
-var xinha_editor = "content";
-</script>
-<!-- END TOPP addition-->
-
-<!-- Load up the actual editor core -->
-<script type="text/javascript" src="/++resource++xinha/XinhaCore.js"></script>
-<script type="text/javascript" 
src="/++resource++xinha/xinhaconfig.js"></script>
-
 <?php if (isset($_GET['message'])) : ?>
 <div id="message" class="updated fade"><p><?php echo 
wp_specialchars($messages[$_GET['message']]); ?></p></div>
 <?php endif; ?>
@@ -185,12 +159,15 @@
 </legend>
 
 <?php the_editor($post->post_content); ?>
+
 </fieldset>
 
 <?php echo $form_pingback ?>
 <?php echo $form_prevstatus ?>
 
 
+
+
 <p class="submit">
 <span id="autosave"></span>
 <?php echo $saveasdraft; ?>

Modified: 
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-content/mu-plugins/wordpress-in-openplans.php
===================================================================
--- 
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-content/mu-plugins/wordpress-in-openplans.php
 2007-11-03 19:13:42 UTC (rev 10364)
+++ 
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-content/mu-plugins/wordpress-in-openplans.php
 2007-11-03 19:18:10 UTC (rev 10365)
@@ -26,7 +26,7 @@
   instructions at 
http://weeklytips.wordpress.com/2006/03/04/extra-tip-removing-admin-menus/
   Find array of admin menus at /wp-admin/menu.php
   */
-  
+  add_action('admin_head', 'oc_remove_admin_menu_items');
   function oc_remove_admin_menu_items() {
        global $menu, $submenu;
        
@@ -68,14 +68,41 @@
 
   }
 
-#
-# Hook in 
-#
 
-  add_action('admin_head', 'oc_remove_admin_menu_items');
+add_action('admin_head', 'oc_xinha_head');
+add_action('wp_head', 'oc_xinha_head');
+function oc_xinha_head() {
+  ?>
+  <!-- TOPP addition -->
+    <link type="text/css" rel="stylesheet" title="blue-look" 
href="/++resource++xinha/skins/blue-look/skin.css" />
+    <link type="text/css" rel="alternate stylesheet" title="green-look" 
href="/++resource++xinha/skins/green-look/skin.css" />
+    <link type="text/css" rel="alternate stylesheet" title="xp-blue" 
href="/++resource++xinha/skins/xp-blue/skin.css" />
+    <link type="text/css" rel="alternate stylesheet" title="xp-green" 
href="/++resource++xinha/skins/xp-green/skin.css" />
+    <link type="text/css" rel="alternate stylesheet" title="inditreuse" 
href="/++resource++xinha/skins/inditreuse/skin.css" />
+    <link type="text/css" rel="alternate stylesheet" title="blue-metallic" 
href="/++resource++xinha/skins/blue-metallic/skin.css" />
+    
+    <style>
+    table.htmlarea {
+    
+        width: 100% !important;
+        height: 300px;
+    }
+    </style>
+    
+    <script type="text/javascript">
+    var _editor_url = "/++resource++xinha/";
+    var _editor_lang = "en";
+    var xinha_editor = "content";
+    </script>
+    <!-- END TOPP addition-->
+    
+    <!-- Load up the actual editor core -->
+    <script type="text/javascript" 
src="/++resource++xinha/XinhaCore.js"></script>
+    <script type="text/javascript" 
src="/++resource++xinha/xinhaconfig.js"></script>
+  <?php 
+}
 
 
-
 add_action('template_redirect', 'check_blog_status');
 function check_blog_status()
 {

Modified: 
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-includes/general-template.php
===================================================================
--- 
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-includes/general-template.php
 2007-11-03 19:13:42 UTC (rev 10364)
+++ 
build/topp.build.wordpress/trunk/topp/build/wordpress/wordpress-mu/wp-includes/general-template.php
 2007-11-03 19:18:10 UTC (rev 10365)
@@ -829,8 +829,7 @@
         // TOPP change
   if (!$content || !(trim($content))) {
     $content = "&nbsp;";
-  }
-       printf('<textarea editor-type="wysiwyg" id="content" name="content" 
rows="10" cols="60" base="advanced">%s</textarea>',$content);
+       printf('<textarea editor-type="wysiwyg" id="content" name="content" 
rows="10" cols="60" base="advanced" height="600" 
width="800">%s</textarea>',$content);
        return;
         // end TOPP change
        $rows = get_option('default_post_edit_rows');



--
Archive: 
http://www.openplans.org/projects/opencore/lists/openplans-svn/archive/2007/11/1194117491304
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]  
Please contact [EMAIL PROTECTED] for questions.

Reply via email to