1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00

Closed #108 机器人暂时不支持多媒体对话,关闭文件上传

This commit is contained in:
Hai Liang Wang 2018-10-19 14:04:25 +08:00
parent 232319959d
commit 89d680fbf8
2 changed files with 7 additions and 7 deletions

View File

@ -37,7 +37,7 @@
allowInsertUpload:false, //增加的参数,上传图片后是否插入到当前区域
allowImageRemote:false,
filterMode:true,
items: ['emoticons', 'cut' , 'image','insertfile'],
items: ['emoticons', 'cut'],
htmlTags: {img : ['src', 'width', 'height', 'border', 'alt', 'title', 'align', '.width', '.height', '.border'] , br:[]} ,
afterChange : function() {
var count = this.count() ;

View File

@ -238,12 +238,12 @@
</div>
<div class="mobile-chat-bottom" id="bottom">
<form id="imgForm" action="/im/image/upload.html?userid=${userid!''}&appid=${appid!''}&username=${username!''}&orgi=${orgi!''}" data-toggle="ajax-form"" enctype="multipart/form-data">
<a href="javascript:;" class="imgFile" onclick="closeFaceDialog(0)">
<img src="/im/img/img.png" class="chat-type" style="width:32px;height:32px;">
<input type="file" name="imgFile" id="imgFile" accept="image/*" onChange="$('#imgForm').submit();$(this).val('');">
</a>
</form>
<!--<form id="imgForm" action="/im/image/upload.html?userid=${userid!''}&appid=${appid!''}&username=${username!''}&orgi=${orgi!''}" data-toggle="ajax-form"" enctype="multipart/form-data">-->
<!--<a href="javascript:;" class="imgFile" onclick="closeFaceDialog(0)">-->
<!--<img src="/im/img/img.png" class="chat-type" style="width:32px;height:32px;">-->
<!--<input type="file" name="imgFile" id="imgFile" accept="image/*" onChange="$('#imgForm').submit();$(this).val('');">-->
<!--</a>-->
<!--</form>-->
<textarea id="message" name="content" maxlength="<#if inviteData.maxwordsnum gt 0>${inviteData.maxwordsnum}<#else>300</#if>"></textarea>
<div class="btn-push clearfix" class="tools">
<img id="facedialog" onclick="return openFaceDialog()" src="/im/img/face.png" style="width:32px;height:32px;"></a>