正在处理服务器日志报告:
[20/Mar/2016 22:52:22] "GET /tm/edit_blocks HTTP/1.1" 200 1932
现在这一行没有出现
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CKEditor</title>
<script src="//cdn.ckeditor.com/4.5.7/standard-all/ckeditor.js"></script>
</head>
<body>
<textarea id="editor0" name="editor0"><p>Editor</p>{{ block0.html }}</textarea>
<script>
CKEDITOR.replace('editor0'), {contentsCss : '/static/tm/style2.css'};
</script>
</body>
</html>
答案 0 :(得分:0)
您需要加载额外的插件
CKEDITOR.replace('editor0'), {extraPlugins : 'stylesheetparser',contentsCss : '/static/tm/style2.css'};
修改强> 原始代码应该更新:
CKEDITOR.replace( 'editor0',{contentsCss :'/static/tm/style3.css'});