Search code examples
javascriptjqueryhtmleditorfroala

Froala Editor doesn't work


I use froala editor first time and now I have problems. On the first page froala works very good, but on the second page - editor doesn't work. When I click on toolbar buttons I have noting. Text length always equals zero and placeholder doesn't hide. Please Help me to fix this problem.

<script src="/public/bower_components/froala-wysiwyg-editor/js/froala_editor.pkgd.min.js"></script>

And.

$("#page_x2j1").froalaEditor();

Solution

  • I ended up using this reference to do the initialization on load and everything worked great.

    $.getScript("js/froala_editor.pkgd.min.js", function () {