我在我的代码中使用 Redactor编辑器(版本:10.0.2)。我只想从网上上传图片。我无法在编辑器中上传图片。我的代码如下:
$('#helptextDescription').redactor({
minHeight: '223px',
maxHeight: '223px',
minwidth: '640px',
maxwidth: '640px',
buttons: ['html', 'formatting', 'bold', 'italic', 'deleted',
'unorderedlist', 'orderedlist', 'outdent', 'indent', 'image',
'table', 'link', 'alignment', 'horizontalrule'],
buttonSource: true,
deniedTags: ['applet'],
removeClasses: false,
replaceDivs: false,
imageUpload: '/WebClient/Images',
imageUploadCallback: function (image, json) {
$(image).attr('id', json.id);
},
imageUploadErrorCallback: function (json) {
alert('error');
}
});