提交 31cda974 编写于 作者: C Catouse

* fix kindeditor themeType option not work.

上级 5bf0bdb7
......@@ -5753,10 +5753,13 @@
options.themesPath = _undef(options.themesPath, options.basePath + 'themes/');
options.langPath = _undef(options.langPath, options.basePath + 'lang/');
options.pluginsPath = _undef(options.pluginsPath, options.basePath + 'plugins/');
if(_undef(options.loadStyleMode, K.options.loadStyleMode)) {
_loadStyle(_undef(options.styleCssPath, options.basePath + '/kindeditor.min.css'));
var themeType = _undef(options.themeType, K.options.themeType);
_loadStyle(options.basePath + '/kindeditor.min.css');
// _loadStyle(options.themesPath + themeType + '/' + themeType + '.css');
if (themeType && themeType !== 'default') {
_loadStyle(options.themesPath + themeType + '/' + themeType + '.css');
}
}
function create(editor) {
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -17,7 +17,6 @@
<script src="../../assets/jquery.js"></script>
<script src="../../dist/js/zui.js"></script>
<link href="../../dist/lib/kindeditor/kindeditor.css" rel="stylesheet">
<script src="../../dist/lib/kindeditor/kindeditor.js"></script>
<script>
$(function() {
......
......@@ -5753,10 +5753,13 @@
options.themesPath = _undef(options.themesPath, options.basePath + 'themes/');
options.langPath = _undef(options.langPath, options.basePath + 'lang/');
options.pluginsPath = _undef(options.pluginsPath, options.basePath + 'plugins/');
if(_undef(options.loadStyleMode, K.options.loadStyleMode)) {
_loadStyle(_undef(options.styleCssPath, options.basePath + '/kindeditor.min.css'));
var themeType = _undef(options.themeType, K.options.themeType);
_loadStyle(options.basePath + '/kindeditor.min.css');
// _loadStyle(options.themesPath + themeType + '/' + themeType + '.css');
if (themeType && themeType !== 'default') {
_loadStyle(options.themesPath + themeType + '/' + themeType + '.css');
}
}
function create(editor) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册