迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
前臺評論區如何調用百度編輯器?,F有的評論輸入沒有加粗,圖片上傳等功能,想做成類似我們論壇回復一樣的輸入框樣式,如何調用百度編輯器,試了輸出百度編輯器的控件代碼,但是沒辦法傳遞輸入內容,不會用。
你還是把圖片二的代碼發來吧,我給你改成現成的代碼,我一樓的說明你可能理解不了
<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 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>
你還是把圖片二的代碼發來吧,我給你改成現成的代碼,我一樓的說明你可能理解不了
<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>