UIMeet
UIMeet
关注数: 1
粉丝数: 14
发帖数: 40
关注贴吧数: 4
今年几号放暑假啊? 今年什么时候放暑假?
跪求黔龙集团设备科或总机的电话,知道的童鞋进来说一下。 如题,万分感谢。
反馈一个使用过程中遇到的问题:多个同名字段的支持 有时候在我们的界面中会存在多个相同 name 的 textarea,这种时候使用uEditor的话,只能获取到最后一个被渲染的uEditor的内容。 初始化代码: $('textarea').each(function () { var editor = new baidu.editor.ui.Editor({ textarea: 'lang_description' }); editor.render($(this).attr('id')); }); 服务端在获取Request.Form["lang_description"]只能获取到最后一个被渲染的uEditor中的内容,通过阅读源码发现,是uEditor内部把我定义的 textarea 给移除了,然后自己创建了一个Textarea,而在创建这个textarea的时候,将这个textarea的id指定为了 'ueditor_textarea_' + me.options.textarea 而引起的。 于是针对这一点,我自己做了一些小改动来支持多个相同名称域的uEditor的提交。 修改后的初始化代码: $('textarea').each(function () { var editor = new baidu.editor.ui.Editor({ textarea: 'lang_description', textarea_id: $(this).attr('id') }); editor.render($(this).attr('id')); }); 最后修改uEditor中创建textarea的代码: var textarea = document.getElementById('ueditor_textarea_' + me.options.textarea_id); ... textarea.id = 'ueditor_textarea_' + me.options.textarea_id; 最后,希望 uEditor 在后续版本中能够支持这种情况。
谈谈你最喜欢锵锵三人行中哪一个嘉宾? 本人比较喜欢陈丹青。 温文尔雅,对世界各地的风土人情也非常熟悉。
申请码:86726 求windows优化大师7.2注册码 申请码:86726
1
下一页