我想在我的网站上使用 aloha 编辑器,我从 [ http://aloha-editor.org/ ] 下载了它。现在我完全糊涂了,因为下载的包包含很多文件。
我拿起 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>
它工作正常。但是我想使用我下载的捆绑包,谁能告诉我如何管理所有文件和文件夹(例如,我必须放置图像文件夹和其他文件夹..)以便它开始工作?