2009-06-20 11 views
0

私は自分のサイトでYUIリッチテキストエディタを使用しています。 Googleのload javascriptを使用して読み込んでいます。リンクを作成しようとすると、タイトルバーが表示されません。を参照してください。hereをYAHoosサイトYUIに表示する方法をご覧ください。タイトルバーがYUIにありません

I

<!--Include YUI Loader: --> 
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/yui/2.7.0/build/yuiloader/yuiloader-min.js"></script> 
<!--Use YUI Loader to bring in your other dependencies: --> 
<script type="text/javascript"> 
// Instantiate and configure YUI Loader: 
(function() { 
    var loader = new YAHOO.util.YUILoader({ 
     base: "http://ajax.googleapis.com/ajax/libs/yui/2.7.0/build/", 
     require: ["editor"], 
     loadOptional: true, 
     combine: false, 
     filter: "MIN", 
     allowRollup: true, 
     onSuccess: function() { 
      var Editor = new YAHOO.widget.Editor('content', { 
       height: '300px', 
       width: '802px', 
      dompath: true, //Turns on the bar at the bottom 
      animate: true //Animates the opening, closing and moving of Editor windows 
      }); 
      Editor.render(); 
    }  
});  

// Load the files using the insert() method. 
loader.insert(); 
})(); 
</script> 

そして、私のWebページに:<head> -tagでこのコードを使用して「メートル

<div class="sIFR-ignore yui-skin-sam"> 
    <textarea name="content" id="content" cols="50" rows="10"> 
    </textarea> 
</div> 

答えて

1

私はデビッドガラス、のいずれかからいくつかの助けを得ましたYUI RTEの開発者。私が作ったエラーは、実際にはCSSのものでした。私のCSSファイルでは、このエラーを引き起こした "h3 {visibility:hidden;}"という行がありました。どのように、あなたの助けに感謝!

-1

を私は原因にSOP(同一生成元ポリシー)私は考えていない、ここで間違っているかもしれませんが、 GoogleでホストされているJavaScriptは、 DOMを変更する(あなたがGoogleでない限り)。

WebサーバーでJavaScriptを配置し、そこからリンクしてみてください。

<script type="text/javascript" src="http://your.web.server.com/yui/2.7.0/build/yuiloader/yuiloader-min.js"></script> 
+0

あなたは間違っています – Evert

0

は、エディタのために、独自のタイトルを強制的に試してみてください。

var Editor = new YAHOO.widget.Editor('content', { 
       height: '300px', 
       width: '802px', 
      dompath: true, //Turns on the bar at the bottom 
      animate: true //Animates the opening, closing and moving of Editor windows 
      }); 
      Editor._defaultToolbar.titlebar="<b>Use my title</b>"; 
      Editor.render(); 
+0

それは違いがありませんでした:( – Zyberzero

+0

何か起こっている可能性については申し訳ありません= – Gero

関連する問題