4

我想在我的网站上使用 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>

它工作正常。但是我想使用我下载的捆绑包,谁能告诉我如何管理所有文件和文件夹(例如,我必须放置图像文件夹和其他文件夹..)以便它开始工作?

4

2 回答 2

0

将所有文件复制到包含插件、lib、img、css 的根目录中,并参考上述指南。

于 2014-04-25T17:02:02.953 回答
0

请参阅http://www.alohaeditor.org/guides/using_aloha.html。将文件保存在/javascriptsWeb 服务器的根目录中,例如运行 localhost 的位置。

于 2016-03-02T22:12:32.430 回答