* refactor.

This commit is contained in:
Catouse
2021-01-22 09:16:29 +08:00
parent fcfc52f489
commit 271cb73407
+5 -5
View File
@@ -38,7 +38,7 @@ $uid = uniqid('');
'fullscreen', 'source', 'preview', 'about'];
var editorToolsMap = {fullTools: fullTools, simpleTools: simpleTools, bugTools: bugTools};
// Kindeditor default options
/* Kindeditor default options */
var editorDefaults =
{
cssPath: [config.themeRoot + 'zui/css/min.css'],
@@ -59,7 +59,7 @@ $uid = uniqid('');
window.editor = {};
// Init kindeditor
/* Init kindeditor */
var setKindeditor = function(element, options)
{
var $editor = $(element);
@@ -102,7 +102,7 @@ $uid = uniqid('');
catch(e){return false;}
};
// Init kindeditor with jquery way
/* Init kindeditor with jquery way */
$.fn.kindeditor = function(options)
{
return this.each(function()
@@ -111,7 +111,7 @@ $uid = uniqid('');
});
};
// Init all kindeditor
/* Init all kindeditor */
var initKindeditor = function(afterInit)
{
var $submitBtn = $('form :input[type=submit]');
@@ -127,7 +127,7 @@ $uid = uniqid('');
});
};
// Init all kindeditors when document is ready
/* Init all kindeditors when document is ready */
$(initKindeditor);
}(jQuery));
</script>