summernote - Summernote v0.8.15 图标未加载
解决方案
要在 Summernote 8.15 中正确加载图标,您需要将其包含在您的 css/scss 文件中
ex. css/fonts.scss
/* summernote 8.15 need to include it font-face*/
@font-face {
font-family: "summernote";
font-style: normal;
font-weight: 400;
font-display: auto;
src: url('/fonts/font/summernote.eot');
src: url('/fonts/font/summernote.eot?#iefix') format("embedded-opentype"),
url('/fonts/font/summernote.woff2') format("woff2"),
url('/fonts/font/summernote.woff') format("woff"),
url('/fonts/font/summernote.ttf') format("truetype");}
然后在你的资产中,你需要复制summernote 8.15的字体文件夹
assets/
- css/
--fonts.scss
-fonts/
--font/
---summernote.eot
---summernote.woff2
---summernote.woff
---summernote.ttf
请参阅 Summernote 文档https://summernote.org/
推荐阅读
- javascript - 在图片下设置按钮
- angular - 可在 Ngfor 内部观察到
- python - Pandas HDFStore 更改存储数据帧的格式
- r - 我想计算 R 中数据帧的每一行中每个值/字符的出现次数,包括当它被其他值/字符包围时
- google-apps-script - 在特定日期从单元格中查找值,然后无限期保留该值
- javascript - 使用 phabricator API 使用 javascript 创建 maniphest 任务
- opengl - 片段着色器中的“不正确的预处理器指令”?
- c# - 有更好的方法吗?
- datatables - 这个javascript语句做了什么样的赋值:var api = this.api(), data;
- swift - 如果在另一个标签栏控制器中更改了数据,如何正确更新表格单元格信息?