This commit is contained in:
yutao 2015-06-09 16:21:19 +08:00
parent 63785564e8
commit 4ed4d3fa44
1 changed files with 4 additions and 4 deletions

View File

@ -4188,7 +4188,7 @@ _extend(KUploadButton, {
button.hide();
button.before(div);
self.div = div;
options.ops.up_file_div = div;//options.ops是KindEditor.create()的options参数
if(options.ops!=undefined)options.ops.up_file_div = div;//options.ops是KindEditor.create()的options参数
self.button = button;
self.iframe = options.target ? K('iframe[name="' + target + '"]') : K('iframe', div);
self.form = options.form ? K(options.form) : K('form', div);
@ -4990,13 +4990,13 @@ KEditor.prototype = {
'emoticons',
'source','plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist', '|',
'formatblock', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
'italic', 'underline', 'removeformat', '|','imagedirectupload','table', 'link', "less",
'italic', 'underline', 'removeformat', '|','imagedirectupload','table', 'media', "less",
'/',
'undo', 'redo', '|', 'preview', 'print', 'template',
'justifyfull', 'insertunorderedlist', 'indent', 'outdent', 'subscript',
'superscript', 'clearhtml', 'quickformat', 'selectall', 'fontname',
'superscript', 'clearhtml', 'quickformat', /* 'selectall',*/ 'fontname',
'strikethrough', 'lineheight', 'hr', 'pagebreak',
'anchor' , 'unlink'
'anchor' , 'link','unlink'
]
K.each(fullItems, function(i, name) {
if (name == '|') {