2012-04-27 8 views
4

私のウェブサイトでaloha editorを使用したいのですが、[http://aloha-editor.org/].Nowからダウンロードしました。ダウンロードしたバンドルにはたくさんのファイルが含まれているので、ウェブサイト上でaloha editorを使用する方法

私はaloha.jsとaloha.cssをピックアップし、次のスクリプト

$(document).ready(function() { 
     Aloha.ready(function() { 
      var $ = Aloha.jQuery; 
      $('.editable').aloha(); 
     }) 
}); 

を追加しましたが、その私は

<script src="http://cdn.aloha-editor.org/current/lib/aloha.js" 
     data-aloha-plugins="common/format, 
     common/list, 
     common/link, 
     common/highlighteditables"> 
</script> 

<!-- load the Aloha Editor CSS styles --> 
<link href="http://cdn.aloha-editor.org/current/css/aloha.css" type="text/css" /> 

<!-- make all elements with class="editable" editable with Aloha Editor --> 
<script type="text/javascript"> 
    Aloha.ready(function() { 
      var $ = Aloha.jQuery; 
      $('.editable').aloha(); 
    }); 
</script> 

を試していないworking.Thenそれは正常に動作します。しかし、私はダウンロードしたバンドルを使いたいと思っています。誰も私にすべてのファイル&フォルダを管理する方法を教えてもらえますか?(イメージフォルダと他のフォルダを置く必要があります。

+0

IMO、alohaはちょっと混乱しているので、/ plugin、/ lib、/ imgフォルダをルートディレクトリに置く必要があります。ディレクトリ構造の中にはaloha.js&aloha.cssの中にハードコーディングされているものもありますので、コードを掘り下げてあなたが幸せになるまでハックしてください。あまり面倒ではないが基本的なプラグインは、Hallo JS – Antony

+0

どのようにあなたのサイトからアロハのソースとプラグインを含めていますか、どのようなエラーが出ていますか? –

答えて

0

すべてのファイルを、プラグイン、lib、img、cssを含むルートディレクトリにコピーし、前述のガイドを参照してください。

関連する問題