删除Microsoft BotFramework iFrame中的图像上载按钮 [英] Remove image upload button in Microsoft BotFramework iFrame

查看:123
本文介绍了删除Microsoft BotFramework iFrame中的图像上载按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iframe嵌入是否有任何配置/支持来禁用按钮?

Does the iframe embed has any configuration / support to disable the button ?

推荐答案

嵌入式网络聊天没有直接配置来禁用上传按钮和功能。但是,嵌入式Web聊天是由项目 BotFramework-WebChat 构建的,因此您可以修改源代码,并编译成您自己的版本以实现您的要求。

The embed web chat doesn't have direct configuration to disable the upload botton and functions. However, the embed web chat is built by the project BotFramework-WebChat, so you can modify the source code, and compile into your own version to achieve your requirement.


  1. 克隆repo https://github.com/Microsoft/BotFramework-WebChat 到您的本地工作区,运行 npm install 安装所有node.js依赖项。

  2. / src / Shell.tsx

  3. 运行 npm run build 进行编译javascript文件的源代码。

  4. 关注简单:在你的非React网站上,运行网络聊天内联部分,利用你网站上自己的js文件。

  1. Clone the repo https://github.com/Microsoft/BotFramework-WebChat to your local work space, run npm install to install all the node.js dependencies.
  2. Comment the code section from line 114 to 132 at /src/Shell.tsx.
  3. run npm run build to compile the source code to javascript file.
  4. follow Easy: In your non-React website, run Web Chat inline section leverage your own js file in your website.

这篇关于删除Microsoft BotFramework iFrame中的图像上载按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆