联系官方销售客服

1835022288

028-61286886

应用插件 版主:官方插件技术组
前台评论区如何调用百度编辑器
类型:迅睿CMS 更新时间:2021-01-14 17:03:54

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

 {xunruicms_img_title}

{xunruicms_img_title}

{xunruicms_img_title}

回帖
  • 官方插件技术-实习
    #1楼    官方插件技术-实习
    2021-01-14 16:57:49
    Chrome 0


  • 官方插件技术-实习
    #2楼    官方插件技术-实习
    2021-01-14 16:58:20
    Chrome 0
    你还是把图片二的代码发来吧,我给你改成现成的代码,我一楼的说明你可能理解不了
  • 56756565ma
    #3楼    56756565ma
    2021-01-14 16:59:17
    Chrome 0
    <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
    Chrome 0
    <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楼    56756565ma
    2021-01-14 17:03:54
    Chrome 0
    @官方插件技术-实习:感谢技术大大,完美解决。本问题已解决。