gpt4 book ai didi

javascript - 如何在网站上使用 Aloha 编辑器

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:46:39 29 4
gpt4 key购买 nike

我想在我的网站上使用 Aloha 编辑器,我从 [ http://aloha-editor.org/].Now 下载了它。我很困惑,因为下载的包中包含很多文件。

我选择了 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>

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

最佳答案

将所有文件复制到根目录,包括 plugins、lib、img、css 并引用上述指南。

关于javascript - 如何在网站上使用 Aloha 编辑器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10348526/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com