我想为我的一个项目使用Aloha-Editor。默认的项目语言是德语,但我找不到任何方法来更改编辑器的语言。 (搜索他们的网站和指南)更改Aloha编辑语言
我发现的唯一的事情是如何在为编辑器开发插件时使用i18n,而不是如何在当前稳定版本中设置语言。
这是我做过什么:
<!-- load the jQuery and require.js libraries -->
<script type="text/javascript" src="http://cdn.aloha-editor.org/latest/lib/require.js"></script>
<script type="text/javascript" src="http://cdn.aloha-editor.org/latest/lib/vendor/jquery-1.7.2.js"></script>
<!-- load the Aloha Editor core and some plugins -->
<script src="http://cdn.aloha-editor.org/latest/lib/aloha.js"
data-aloha-plugins="common/ui,
common/format,
common/list,
common/link,
common/highlighteditables">
</script>
<!-- load the Aloha Editor CSS styles -->
<link href="http://cdn.aloha-editor.org/latest/css/aloha.css" rel="stylesheet" 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>
有谁知道我需要添加或更改,以获得在其他语言的编辑器?
出于某种原因,我不得不删除'common/block'插件让它工作 – Pere 2013-12-27 23:39:24