我希望在我的网站上使用aloha编辑器,我已从[http://aloha-editor.org/]下载了它。但是现在我感到非常困惑,因为下载的包含有大量文件。
我选择了aloha.js和aloha.css,并添加了以下脚本。
我选择了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>
它运行良好。但我想使用我的下载的包,有人能告诉我如何管理所有文件和文件夹(例如-我必须把图像文件夹和其他文件夹放在哪里..),以便它开始工作吗?