Php YUI文本编辑器在我的Mozilla中不起作用

Php YUI文本编辑器在我的Mozilla中不起作用,php,yui,Php,Yui,我现在经历了几个小时的这个问题,真的不知道如何解决这个问题。不过,它在IE中工作正常,但在mozilla中不起作用。 这是我的密码: <!-- Skin CSS file --> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.7.0/build/assets/skins/sam/skin.css"> <!-- Utility Dependencie

我现在经历了几个小时的这个问题,真的不知道如何解决这个问题。不过,它在IE中工作正常,但在mozilla中不起作用。 这是我的密码:

   <!-- Skin CSS file -->
    <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.7.0/build/assets/skins/sam/skin.css">
    <!-- Utility Dependencies -->
    <script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/yahoo-dom-event/yahoo-dom-event.js"></script> 
    <script type="text/javascript" src="http://yui.yahooapis.com/2.7.0/build/element/element-min.js"></script> 
    <!-- Needed for Menus, Buttons and Overlays used in the Toolbar -->
    <script src="http://yui.yahooapis.com/2.7.0/build/container/container_core-min.js"></script>
    <script src="http://yui.yahooapis.com/2.7.0/build/menu/menu-min.js"></script>
    <script src="http://yui.yahooapis.com/2.7.0/build/button/button-min.js"></script>
    <!-- Source file for Rich Text Editor-->
    <script src="http://yui.yahooapis.com/2.7.0/build/editor/editor-min.js"></script>
    <script>
           var myEditor = new YAHOO.widget.Editor('msgpost', {
        height: '100px',
        width: '522px',
        dompath: true, //Turns on the bar at the bottom
        animate: true //Animates the opening, closing and moving of Editor windows
    });
    myEditor.render(); 
    //Inside an event handler after the Editor is rendered
    YAHOO.util.Event.on('save', 'click', function() {
        //Put the HTML back into the text area
        myEditor.saveHTML();

        //The var html will now have the contents of the textarea
        var html = myEditor.get('msgpost').value;
    });
    YAHOO.util.Event.on('edit', 'click', function() {
        //Put the HTML back into the text area
        myEditor.saveHTML();

        //The var html will now have the contents of the textarea
        var html = myEditor.get('msgpost').value;
    });



        </script> 

    <form id="form2" name="form2" method="post" action="processgreeting.php">

     <div class="span-22 gtype"  >
     <div class="span-5"><label>Message:</label></div>
     <div class="span-17 last"><textarea name="msgpost" id="msgpost" cols="50" rows="40"> </textarea> <br>  
     </div>

    <input type="submit" name="save" value="Post Greeting"  id="postgreeting"/>

    </form>

processgreeting.php
if(isset($_POST['save']))
{

 $body = trim($_POST['msgpost']);

  $valid = 1;
  $publish_date = strtotime($publish); 
   if ($publish >= $today)
    {
    $valid = 0;
    $insert_greeting = "INSERT INTO greeting (type,decs,name,message,date,user,publish) VALUES ('$type','$desc','$name','$body','$today',$user,'$publish')";
    $register_greeting = mysql_query($insert_greeting)or die(mysql_error());
    $lastnum = mysql_insert_id(); 
    $_SESSION["greetingno"] = $lastnum; 
    if($valid == 0)
    {
    echo '<strong>Greeting Type: </strong>'.$type.'<br><strong>Description: </strong>'.$desc.'<br><strong>Name: </strong>'.$name.'<br><strong>Message: </strong>'.$body.'<strong><br>Publish Date: </strong>'.$publish;
    }

    //echo $valid;
    }
   else{ //echo "<span style='color:#FF0000'>Publish date is invalid</span>" ;
   echo $valid;
        }  //} 

}

var myEditor=newyahoo.widget.Editor('msgpost'{
高度:“100px”,
宽度:“522px”,
dompath:true,//打开底部的栏
动画:true//为编辑器窗口的打开、关闭和移动设置动画
});
myEditor.render();
//呈现编辑器后在事件处理程序中
YAHOO.util.Event.on('save','click',function(){
//将HTML放回文本区域
myEditor.saveHTML();
//var html现在将包含textarea的内容
var html=myEditor.get('msgpost').value;
});
YAHOO.util.Event.on('edit','click',function(){
//将HTML放回文本区域
myEditor.saveHTML();
//var html现在将包含textarea的内容
var html=myEditor.get('msgpost').value;
});
信息:

processgreeting.php 如果(isset($_POST['save'])) { $body=trim($_POST['msgpost']); $valid=1; $publish\u date=strottime($publish); 如果($publish>=$today) { $valid=0; $insert_greeting=“插入问候语(类型、日期、名称、消息、日期、用户、发布)值(“$type”、“$desc”、“$name”、“$body”、“$today”、$user、$publish”); $register\u greeting=mysql\u query($insert\u greeting)或die(mysql\u error()); $lastnum=mysql\u insert\u id(); $\会话[“greetingno”]=$lastnum; 如果($valid==0) { 回显“问候语类型:”.$Type.“
说明:”.$desc.
姓名:”.$Name.“
信息:”.$body.“
发布日期:
”.$Publish; } //echo$有效; } else{//echo“发布日期无效”; echo$有效; } //} }
谁能帮我一下我做错了什么


提前谢谢。

我刚刚在我的mac电脑上试用了firefox,一切似乎都正常。你到底有什么问题