业务经理

微信扫描以上二维码

028-61286886

技术咨询

前台评论区如何调用百度编辑器

迅睿框架 更新 2021-01-14 17:03:54 56756565ma

前台评论区如何调用百度编辑器。现有的评论输入没有加粗,图片上传等功能,想做成类似我们论坛回复一样的输入框样式,如何调用百度编辑器,试了输出百度编辑器的控件代码,但是没办法传递输入内容,不会用。

 {xunruicms_img_title}

{xunruicms_img_title}

{xunruicms_img_title}

方案

  • 官方插件技术-实习 #1 · 2021-01-14 16:57:49


  • 官方插件技术-实习 #2 · 2021-01-14 16:58:20
    你还是把图片二的代码发来吧,我给你改成现成的代码,我一楼的说明你可能理解不了
  • 56756565ma #3 · 2021-01-14 16:59:17
    <div class="ds-textarea-wrapper ds-rounded-top"> <?php echo dr_fieldform('{"name":"编辑器","fieldname":"bianjiqi","ismain":"1","fieldtype":"Ueditor","setting":{"option":{"down_img":"1","watermark":"0","show_bottom_boot":"0","autofloat":"0","remove_style":"0","div2p":"0","autoheight":"1","page":"0","mode":"1","tool":"\'bold\', \'italic\', \'underline\'","mode2":"2","tool2":"\'bold\', \'italic\', \'underline\'","mode3":"2","tool3":"\'bold\', \'italic\', \'underline\'","attachment":"0","image_reduce":"","value":"","width":"100%","height":"300","css":""},"validate":{"required":"0","pattern":"","errortips":"","check":"","filter":"","formattr":"","tips":""}},"ismember":"1"}', $bianjiqi);?> <textarea class="J_CmFormField" name="content" placeholder="说点什么吧…"> </textarea> </div> <div class="ds-post-toolbar"> <div class="ds-post-options ds-gradient-bg"></div> <button class="ds-post-button" type="button" onclick="dr_post_comment()">提交</button> <div class="ds-toolbar-buttons"> <a class="ds-toolbar-button ds-add-emote" onclick="dr_show_bq()" title="插入表情"></a> </div> </div>
  • 官方插件技术-实习 #4 · 2021-01-14 17:01:18
    满意答案
    <div class="ds-textarea-wrapper ds-rounded-top">
    			<?php echo str_replace("data[content]", "content",dr_fieldform('{"name":"编辑器","fieldname":"content","ismain":"1","fieldtype":"Ueditor","setting":{"option":{"down_img":"1","watermark":"0","show_bottom_boot":"0","autofloat":"0","remove_style":"0","div2p":"0","autoheight":"1","page":"0","mode":"1","tool":"\'bold\', \'italic\', \'underline\'","mode2":"2","tool2":"\'bold\', \'italic\', \'underline\'","mode3":"2","tool3":"\'bold\', \'italic\', \'underline\'","attachment":"0","image_reduce":"","value":"","width":"100%","height":"300","css":""},"validate":{"required":"0","pattern":"","errortips":"","check":"","filter":"","formattr":"","tips":""}},"ismember":"1"}', ""));?>
        
                </div>
    		    <div class="ds-post-toolbar">
                    <div class="ds-post-options ds-gradient-bg"></div>
                    <button class="ds-post-button" type="button" onclick="dr_post_comment()">提交</button>
                   
                </div>
  • 56756565ma #5 · 2021-01-14 17:03:54
    @官方插件技术-实习:感谢技术大大,完美解决。本问题已解决。

迅睿系统漏洞

GEO系统
GEO系统(2026-09-15)
运营客户端,防止误触阴影处关闭对话框
独立站群系统
独立站群系统(2026-09-14)
子站独立部署时修复同步附件失败问题
在线客服
在线客服(2026-09-13)
修复删除会话报错问题 删除会话时联动删除聊天图片
在线考试竞赛系统
在线考试竞赛系统(2026-09-12)
增加投票功能 考试功能拓展 注意:更新后需要执行系统更新,更新数...
网上信箱
网上信箱(2026-09-12)
修复新版本兼容问题
GeoSeo收录宝
GeoSeo收录宝(2026-09-12)
1 优化Update.php文件,解决版本在线升级不完整问题 2 ...
GeoSeo工具箱
GeoSeo工具箱(2026-09-11)
修正历史记录推送
微信系统
微信系统(2026-09-11)
增加数据统计总览界面 账号管理增加服务和公众号的区别 菜单管理支持更...
答题系统
答题系统(2026-09-11)
一站式在线答题系统,支持真题考试、题库练习和错题本,适合培训、考证、...
阿里云滑动验证码
阿里云滑动验证码(2026-09-10)
采用阿里云验证码替换迅睿系统自带的图片验证码和滑动验证码。后台设置方...