2015-06-27 27 views

回答

2

您可以使用redactor的回調來修改上傳的圖像DOM。

以下回答取自here。關於imageUploadCallback的更多信息是here

$('#redactor').redactor({ 
    imageUploadCallback: function(image, json) 
    { 
     // image = this is DOM element of image, add the 'img 
     $(image).addClass("img-responsive");  
    } 
});