我想用阿罗哈编辑器在我的网站上阿罗哈编辑器,我下载它从[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>
它工作正常。但我想用我的下载包,谁能告诉我,我怎么能管理所有的文件夹&(为前在那里我必须把图像文件夹和其他文件夹..),所以它开始工作?
IMO,阿罗哈是有点乱,所以希望你把/插件,/ lib下,/在根目录img目录。一些目录结构甚至在aloha.js和aloha.css里面被硬编码,所以你最好的选择是挖掘代码,并且直到你感到高兴为止。另一个可能不那么混乱,但非常基本的插件是Hallo JS – Antony 2012-04-30 22:11:00
您如何在网站中包含Aloha的源代码和插件,以及您获得了哪些错误? – 2012-05-03 12:28:51