Uncaught TypeError: $(...).froalaEditor is not a function// solution is found but not sure how to use it

Uncaught TypeError: $(...).froalaEditor is not a function// solution is found but not sure how to use it

我只是想在我的网站上使用 froala 文本编辑器,但我收到未捕获的类型错误:$(...).froalaEditor 不是函数。

我用谷歌搜索并找到了解决方案 here 但我不知道如何使用此资源。主要是因为我的代码中没有这个

var $ = require('jquery');
require('node_modules/froala-editor/js/froala_editor.min.js');

$(function() {
  var $target = $('<div>').appendTo('body');
  $target.froalaEditor()
});

我只是按照文档操作,https://github.com/froala/wysiwyg-editor。我在顶部使用 {{form.media}} 来使用它,但在控制台上我得到了上述错误。有人可以告诉我如何使用 github 中的解决方案吗?

要求('node_modules/froala-editor/js/froala_editor.min.js')($);

看到最后了吗?