TinyMCE 插件文件选择器替换?
TinyMCE plugin filepicker replacement?
将一些 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": {}
}
None 其中似乎是文件选择器的替代品。我错过了什么吗?
TIA
安迪
我仔细研究了图像插件。 urlinput 是正确答案:
{type: 'urlinput',
name: 'filePath',
label: 'Document',
filetype: 'file',
value: filePath
将一些 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": {}
}
None 其中似乎是文件选择器的替代品。我错过了什么吗?
TIA
安迪
我仔细研究了图像插件。 urlinput 是正确答案:
{type: 'urlinput',
name: 'filePath',
label: 'Document',
filetype: 'file',
value: filePath