如何将自定义字段添加到 CKEditor 上传对话框并将该输入传递到自定义上传页面
我正在使用标准 CKEditor 实例,并尝试将自定义字段添加到上传对话框中,以便用户可以输入他们希望文件最终达到的大小。我用它来获得对话中的场域;
if (dialogName == 'image') {
var infoTab = dialogDefinition.getContents('Upload');
infoTab.add({
type: 'text',
label: 'Desired Width (pixels)',
id: 'imageWidth',
name: 'imageWidth',
'default': '600'
});
};
该字段存在于上传对话框中,但在提交时未在表单中传递,也未在查询字符串或表单集合中传递。
任何人有任何想法..?
谢谢
I am using a standard CKEditor instance and trying to add a custom field to the UPLOAD dialogue so the user can enter the size they want the file to end up. I have used this to get the field in the dialogue;
if (dialogName == 'image') {
var infoTab = dialogDefinition.getContents('Upload');
infoTab.add({
type: 'text',
label: 'Desired Width (pixels)',
id: 'imageWidth',
name: 'imageWidth',
'default': '600'
});
};
The field is there in the upload dialogue but it is not passed in the form when it is submitted, its not passed in the querystring or the form collection.
Anyone have any ideas..?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论