2012-04-27 42 views
4

我想用阿羅哈編輯器在我的網站上阿羅哈編輯器,我下載它從[http://aloha-editor.org/].Now我完全糊塗了,因爲下載包包含大量的文件。如何使用網站

我拿起aloha.js和aloha.css並添加下面的腳本

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

,但它不是working.Then我試圖

<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> 

它工作正常。但我想用我的下載包,誰能告訴我,我怎麼能管理所有的文件夾&(爲前在那裏我必須把圖像文件夾和其他文件夾..),所以它開始工作?

+0

IMO,阿羅哈是有點亂,所以希望你把/插件,/ lib下,/在根目錄img目錄。一些目錄結構甚至在aloha.js和aloha.css裏面被硬編碼,所以你最好的選擇是挖掘代碼,並且直到你感到高興爲止。另一個可能不那麼混亂,但非常基本的插件是Hallo JS – Antony 2012-04-30 22:11:00

+0

您如何在網站中包含Aloha的源代碼和插件,以及您獲得了哪些錯誤? – 2012-05-03 12:28:51

回答

0

所有文件複製到根目錄,它包括插件,LIB,IMG,CSS,並且是指上述指南。