question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReferenceError: FroalaEditor is not defined

See original GitHub issue

Hello! Installed your bundle. But he not working. A copy of the repository from github.

./node_modules/angular-froala

 "name": "angular-froala",
  "version": "3.0.5",

./node_modules/froala-editor

  "name": "froala-editor",
  "version": "3.0.5",
errorCatcher.js:21 ReferenceError: FroalaEditor is not defined
    at Object.ctrl.createEditor (angular-froala.js:119)
    at Object.ctrl.init (angular-froala.js:60)
    at Object.link (angular-froala.js:222)
    at angular.js:1388
    at angular.js:11260
    at invokeLinkFn (angular.js:11266)
    at nodeLinkFn (angular.js:10585)
    at compositeLinkFn (angular.js:9832)
    at compositeLinkFn (angular.js:9835)
    at compositeLinkFn (angular.js:9835)

In app.js

import 'froala-editor/js/froala_editor.min';
import 'angular-froala/src/angular-froala';

In template.html <textarea froala class="form-control" id="description" ng-model="$ctrl.description"></textarea>

What could be the problem?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
Techbinatorcommented, Mar 13, 2020

You can add in the entry file so that you do not need to apply a hotfix directly in the lib

import FroalaEditor from "froala-editor/js/froala_editor.min.js";
global.FroalaEditor = FroalaEditor;
0reactions
bsodmikecommented, Apr 22, 2020

This saved many many hours of hunting for a solution, thanks! @techbinator

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: $(...).froalaEditor is not a function ...
I just simply want to use froala text editor on my site, but I get Uncaught TypeError: $(...).froalaEditor is not a function. I...
Read more >
ReferenceError: FroalaEditor is not defined - Bountysource
Hello! Installed your bundle. But he not working. A copy of the repository from github. ./node_modules/angular-froala
Read more >
Changelog for WYSIWYG Editor - Froala
Fixed, the increase and decrease indent is not working with Ordered List. ... is defined as enter; Fix for reported XSS vulnerability in...
Read more >
froala-editor - npm
The next generation Javascript WYSIWYG HTML rich text editor made by devs for devs. High performance and modern design make it easy to...
Read more >
Froala Editor v3.x - ComponentSource
Fixed Froala editor scrolls up if you use enter in table. Fixed Enter_BR: Multiple characters ... Fixed Uncaught ReferenceError: replace is not defined....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found