Rol*_*ert 6 javascript ckeditor
我正在使用标准CKEditor实例并尝试向UPLOAD对话框添加自定义字段,以便用户可以输入他们希望文件结束的大小.我用这个来对话;
if (dialogName == 'image') {
var infoTab = dialogDefinition.getContents('Upload');
infoTab.add({
type: 'text',
label: 'Desired Width (pixels)',
id: 'imageWidth',
name: 'imageWidth',
'default': '600'
});
};
Run Code Online (Sandbox Code Playgroud)
该字段位于上传对话框中,但在提交时不会在表单中传递,也不会在查询字符串或表单集合中传递.
有人有主意吗..?
谢谢