baidu/amis

富文本组件tinymce相关报错,TypeError: Cannot read properties of undefined (reading 'select')

Open

#8024 opened on Sep 6, 2023

View on GitHub
 (2 comments) (0 reactions) (0 assignees)TypeScript (15,576 stars) (2,268 forks)batch import
help wantedneed confirm

Description

描述问题:

富文本组件有图片的情况下报错,有时报错,有时不报错,出现频率较高

截图或视频:

image

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的? vue项目中使用,参考vue2-amis-demo这个项目做的

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在3. 3.4.0-beta.12

  3. 粘贴有问题的完整 amis schema 代码:

{
  "type": "input-rich-text",
  "label": "富文本",
  "name": "background",
  "id": "u:6d7a2fb5dfa6",
  "vendor": "tinymce",
  "options": {
    "plugins": "advlist,autolink,link,image,lists,charmap,preview,anchor,pagebreak,searchreplace,wordcount,visualblocks,visualchars,code,fullscreen,insertdatetime,media,nonbreaking,table,emoticons,template,help",
    "toolbar": "undo redo formatselect bold italic backcolor alignleft aligncenter alignright alignjustify bullist numlist outdent indent removeformat help",
    "menubar": true
  },
  "receiver": {
    "url": "${window:location.origin}/xxxxx",
    "method": "post",
    "requestAdaptor": "",
    "adaptor": "",
    "messages": {
    }
  }
}
  1. 操作步骤 富文本坐在的form表单是在drawer抽屉里,富文本中有图片,点击列表中的不同的行,打开抽屉,有时会出现上面截图中的报错

Contributor guide