baidu/amis

富文本工具栏 选择 formatselect 等无效

Open

#12,013 opened on May 27, 2025

View on GitHub
 (1 comment) (0 reactions) (0 assignees)TypeScript (2,268 forks)batch import
help wantedneed confirm

Repository metrics

Stars
 (15,576 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

描述问题:

当富文本options为空的时候,工具栏显示是正常的,在鼠标选中其他组件后重新选中富文本后,options自动填充,但是再也无法出现段落、字体、字号选择工具栏,这个问题稳定复现,包括 https://aisuda.github.io/amis-editor-demo/#/hello-world demo页面

截图或视频:

可以的话,尽可能提供截图或视频来补充描述你的问题...

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

当富文本options为空的时候,工具栏显示是正常的,在鼠标选中其他组件后重新选中富文本后,options自动填充,但是再也无法出现段落、字体、字号选择工具栏,这个问题稳定复现,包括 https://aisuda.github.io/amis-editor-demo/#/hello-world demo页面

{
  "type": "page",
  "body": [
    {
      "type": "input-rich-text",
      "label": "富文本",
      "name": "rich-text",
      "vendor": "tinymce",
      "id": "u:7ad05c1e816f",
      "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
      }
    }
  ],
  "asideResizor": false,
  "pullRefresh": {
    "disabled": true
  }
}
  1. 操作步骤 请简单描述一下复现的操作步骤...

Contributor guide