【问题标题】:What's wrong with the icons from Summernote ? I cannot see themSummernote 的图标有什么问题?我看不到他们
【发布时间】:2016-10-16 01:36:21
【问题描述】:

供您参考,我的项目是使用框架 Laravel 5.2 构建的,我在项目中使用 Summernote 作为所见即所得的文本编辑器...

问题是...我看不到文本编辑器的图标... 这是脚本:

  <script type="text/javascript" src="/js/summernote.js"> </script>
  <script>
          $(document).ready(function() {
          $('#summernote').summernote({
          height: 300,
          minHeight:null,
          maxHeight:null,
          focus:true
          });
    });
   </script>        

...这是 php 上的 ID...

 @extends('layouts.app')
 @section('content')
 <div class="container">
 <div id="summernote">

 </div>
 </div>

 @endsection

【问题讨论】:

  • 如果您收到一些 404 未找到的资源(如 CSS、图像、字体等),请检查您的控制台。

标签: javascript php laravel


【解决方案1】:

在使用 summernote css 之前使用 font awesome。

您可以使用CDN:

<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-06-18
    • 2014-01-05
    • 2021-09-13
    • 2021-06-28
    • 2023-04-08
    • 1970-01-01
    • 2020-09-18
    • 1970-01-01
    相关资源
    最近更新 更多