网站编程备忘录

ckeditro4

工具栏设置

https://ckeditor.com/latest/samples/toolbarconfigurator/index.html#basic

编辑器添加figurefigcaption支持,并防止过滤class

在config.js文件中添加以下代码:

config.extraAllowedContent = "figure  figcaption *(*)";

支持添加“Book Antiqua”字体并禁用其他字体,从Word粘贴时不包含字体格式和样式

在config.js文件中添加以下代码:

config.font_names = 'Book Antiqua';
config.pasteFromWordRemoveFontStyles = true;
config.pasteFromWordRemoveStyles = true;

解决ckeditor4在bootstrap5的modal框中无法取得焦点的问题

只需要在model属性中添加“data-bs-focus="false" 即可,例如:

<div class="modal fade" id="example" data-bs-focus="false" tabindex="-1">

参考网址:https://stackoverflow.com/questions/69269449/ckeditors-popup-input-fields-dont-work-when-used-with-bootstrap-5-modal-ckedit

Abp框架5.1

在登录界面禁用新用户注册

在Web项目的appsettings.json中添加以下代码:

"Settings": {
   "Abp.Account.IsSelfRegistrationEnabled": false
}

发布时间:2022/1/25 16:42:48  阅读次数:1137

2006 - 2024,推荐分辨率1024*768以上,推荐浏览器Chrome、Edge等现代浏览器,截止2021年12月5日的访问次数:1872万9823 站长邮箱

沪ICP备18037240号-1

沪公网安备 31011002002865号