迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費(fèi)且不限制商業(yè)使用,是免費(fèi)開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計(jì)理念,支持的微信公眾號(hào)、小程序、APP客戶端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
前臺(tái)評(píng)論區(qū)如何調(diào)用百度編輯器?,F(xiàn)有的評(píng)論輸入沒有加粗,圖片上傳等功能,想做成類似我們論壇回復(fù)一樣的輸入框樣式,如何調(diào)用百度編輯器,試了輸出百度編輯器的控件代碼,但是沒辦法傳遞輸入內(nèi)容,不會(huì)用。
你還是把圖片二的代碼發(fā)來吧,我給你改成現(xiàn)成的代碼,我一樓的說明你可能理解不了
<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="說點(diǎn)什么吧…">
</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 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>
你還是把圖片二的代碼發(fā)來吧,我給你改成現(xiàn)成的代碼,我一樓的說明你可能理解不了
<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="說點(diǎn)什么吧…">
</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>