* refactor.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user