javascript - froala 没有显示一些工具栏按钮

标签 javascript angular froala

Froala 不想显示某些按钮(例如:视频、图像、表格...),我现在不知道为什么。也许我只是忘记添加一些脚本? 这是我的选项:

    public tb = [
        "bold", "italic" , "insertTable","insertImage"]; 
 public options: Object = { 
  placeholderText: 'Edit Your Content Here!',
  toolbarInline: false,
  toolbarButtons: this.tb,
        toolbarButtonsMD: this.tb,
        toolbarButtonsSM: this.tb,
        toolbarButtonsXS: this.tb
}

这是我的脚本:

<script src="http://code.jquery.com/jquery-1.9.0.js"></script>
  <script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>
  <script src="bower_components/froala-wysiwyg-editor/js/froala_editor.min.js"></script>
<script src="bower_components/froala-wysiwyg-editor/js/plugins/image.min.js"></script>
  <script src="bower_components/froala-wysiwyg-editor/js/plugins/image_manager.min.js"></script>
<script src="bower_components/froala-wysiwyg-editor/js/plugins/video.min.js"></script>

我的客户只显示粗体和斜体,我该如何解决?

enter image description here

最佳答案

确保你也有对应的 css。像 plugins/image.min.css

这是 list

关于javascript - froala 没有显示一些工具栏按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41746638/

相关文章:

javascript - 单击时向上或向下滚动 100vh 纯 JavaScript

javascript - ASP.NET 更新面板 : Injecting Javascript on UpdatePanel update

angular - 如何创建自动完成 - Angular 5

javascript - Froala Editor 2 basic init 未捕获类型错误 : undefined is not a function

javascript - Froala Font-Size Popup 方向错误

javascript - 添加到数组后更改对象的值

c# - 将出生日期插入sql server

javascript - 如何在 Angular 2 模板中开始新行

Angular 通用 + CkEditor5 : window is not defined

javascript - 我如何在焦点事件上捕捉 froala 编辑?