ckeditor - CKeditor 更改语言不起作用(未将语言更改为英语)
问题描述
嗨,我想将我的 ckeditor 的语言更改为英语。但是我不确定为什么它不能翻译成英文。有人能帮我吗?我试过 put lang: "en" 但不起作用。我不确定我的配置需要更改什么。请帮忙。我是新的
这是代码:
https://codesandbox.io/s/elastic-borg-u4cih?file=/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Static Template</title>
<script src="https://dl.dropboxusercontent.com/s/hb9vf8r4vz7imyy/ckeditor.js"></script>
</head>
<body>
<textarea name="content" class="editor">
Edit me c:
</textarea
>
</body>
<script>
ClassicEditor.create(document.querySelector(".editor"), {
toolbar: {
items: [
"|",
"bold",
"italic",
"link",
"bulletedList",
"numberedList",
"|",
"indent",
"outdent",
"|",
"imageUpload",
"blockQuote",
"mediaEmbed",
"undo",
"redo"
]
},
language: "de",
image: {
toolbar: ["imageTextAlternative", "imageStyle:full", "imageStyle:side"]
},
licenseKey: ""
})
.then((editor) => {
window.editor = editor;
})
.catch((error) => {
console.error("Oops, something went wrong!");
console.error(
"Please, report the following error on https://github.com/ckeditor/ckeditor5/issues with the build id and the error stack trace:"
);
console.warn("Build id: ref2goguw78q-8ghiwfe1qu83");
console.error(error);
});
</script>
</html>
解决方案
推荐阅读
- python - python TypeError:无法在将生成器与多处理结合使用时腌制生成器对象
- javascript - 从下拉列表中选择多个值
- html - bootstrap 4中的自定义卡片组
- ios - fetchBatchSize 不适用于 NSFetchRequest
- java - 收到“非法初始容量错误”
- windows - _penter 和 _pexit 符号未见
- javascript - 如果父组件更新,何时反应卸载和重新安装子组件?
- azure-service-fabric - Service Fabric 何时使用远程调用与反向代理与微服务通信
- sql - PSQL 聚合函数
- laravel - Laravel API 测试单元与功能