TinyMCE 插件文件选择器替换?

TinyMCE plugin filepicker replacement?

提问人:Andy Knipp 提问时间:12/30/2020 更新时间:1/7/2021 访问量:129

问:

将一些 TinyMCE 插件从 4 个移动到 5 个。一直在挖掘在线文档,这肯定有所帮助。发现了一件我无法解决的事情。

有一个插件来选择主机服务器(而不是运行浏览器的客户端)上的文件。原始来源使用:

类型: 'filepicker',

但这给了我一个错误:

The chosen schema: "filepicker" did not exist in branches: {
  "alertbanner": {},
  "bar": {},
  "button": {},
  "checkbox": {},
  "colorinput": {},
  "colorpicker": {},
  "dropzone": {},
  "grid": {},
  "iframe": {},
  "input": {},
  "selectbox": {},
  "sizeinput": {},
  "textarea": {},
  "urlinput": {},
  "customeditor": {},
  "htmlpanel": {},
  "imagetools": {},
  "collection": {},
  "label": {},
  "table": {},
  "panel": {}

}

这些似乎都不像是文件选择器的替代品。我错过了什么吗?

短暂性投资安全

安 迪

tinymce

评论


答:

0赞 Andy Knipp 1/6/2021 #1

我挖掘了图像插件。urlinput 是正确答案:

{type: 'urlinput',
name: 'filePath',
label: 'Document',
filetype: 'file',
value: filePath

评论

0赞 Pangamma 1/20/2022
不过,此视图不包括用于选择文件的按钮。它只是一个 URL 输入文本框。