如何获取dr_fieldform生成的百度富文本框内的数据

迅睿框架 更新 2024-07-23 14:08:26 夏木

我采用

<div class="chat_input" method="post" id="myform1">

                       

                        <?php echo dr_fieldform('{"name":"聊天内容","fieldname":"chatContent","ismain":"1","fieldtype":"Ueditor","setting":{"option":{"enter":"0","down_img":"0","watermark":"0","show_bottom_boot":"0","autofloat":"0","remove_style":"0","div2p":"0","duiqi":"0","autoheight":"0","page":"0","mode":"3","tool":"\'emotion\',\'attachment\'","mode2":"3","tool2":"\'emotion\',\'attachment\'","mode3":"3","tool3":"\'emotion\',\'attachment\'","attachment":"0","image_endstr":"","value":"","width":"100%","height":"130","css":""},"validate":{"required":"0","pattern":"","errortips":"","check":"","filter":"","formattr":"","tips":""}},"ismember":"1"}', $chatContent, 1, 1);?>

                        <button class="sendButton" onclick="send()"><span class="sendText">发送</span></button>

                    </div>

生成百度富文本框后,不清楚应该如何获取富文本框内的数据,请教诸位大佬,如何获取dr_fieldform生成的百度富文本框内的数据?

image

方案

  • 迅睿官方 #1 · 2024-07-23 13:55:27
    用js获取,百度编辑器有个专门的js函数
  • 迅睿官方 #2 · 2024-07-23 13:56:49
    满意答案
  • 夏木 #3 · 2024-07-23 14:08:26
    @迅睿官方:十分感谢大佬,UE.getEditor('编辑器ID').getContent()

迅睿系统漏洞

站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;
CMS内容同步复制
CMS内容同步复制(2026-10-10)
增加时间是否更新的开关