迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
通过dayrui\My\View\site_info.html可以新建类似文字块的模块,但是这种模块是不支持字体换行或者文字大小加粗等,
咱们后台可以实现新建小型编辑器的功能吗?放一些类型与截图处红色框内的文字:
<?php echo dr_fieldform('{"name":"编辑器","fieldname":"bianjiqi","ismain":"1","fieldtype":"Ueditor","setting":{"option":{"down_img":"0","watermark":"0","show_bottom_boot":"0","autofloat":"0","remove_style":"0","div2p":"0","autoheight":"0","page":"0","mode":"1","tool":"\'bold\', \'italic\', \'underline\'","mode2":"1","tool2":"\'bold\', \'italic\', \'underline\'","mode3":"1","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"}', $data.bianjiqi);?>
生成的代码,变量名改一下就可以正常存储了