Open siddhant-mohan opened 3 years ago
@lebart pls help
I have been trying to integrate this using webpack and facing the same issue. @stefanneculai If you can look at this that would be really helpful.
In javascript/packs/application.js I added these lines to get it to get rid of that error:
import FroalaEditor from 'froala-editor/js/froala_editor.min.js';
global.FroalaEditor = FroalaEditor;
I had installed froala-editor with yarn.
Also, I added this path: froala-editor/css/
to the froala files imported in application.scss to get it to find them.
My html file is:
My javascript/packs/application.js is
My stylesheets/application.scss is: