$(...).froalaEditor is not a function
Hi
Just installed your bundle. I've add configuration, add froala to form (a form field type). And have error $(...).froalaEditor is not a function.
froala_editor.min.js loaded also. What could be the problem?
Hi, do you manually loads javascript or let the bundle include it ?
Hi, Sorry for delay. I let bundle to include it. Now I tried to include manually - and it works now, thanks!
@Jakub-Fajkus
Hardcode :)
<script src="{{ asset( 'bundles/kmsfroalaeditor/froala_editor_2.1.0/js/froala_editor.min.js' ) }}"></script>
The same I've added plugins and styles.
I'll take a look and maybe ask you some questions about your configuration, libraries...
I think I found the problem. I am trying this on dev environment which is much slower than production. On production, it works without problem. I suppose the problem was because the jQuery's function ready() got triggered before the "froala_editor.min.js" file was fully loaded.
I used to load all javascripts at the botton of the page and was having the same problem..
I just had to put jQuery js on the
tag and everything loaded correctly.
I have the same problem too
Same problem
Yes, sometimes javascript files are not fully loaded, or some plugins are missing, need to investigate..
I have the same problem.
Samething happened to me. I put includeJS to false in the config.yml and then included it myself. That solved the problem.
Me too.
Same problem for me. But even after including the js manually, i still got the same error.
I solved, "Samething happened to me. I put includeJS to false in the config.yml and then included it myself. That solved the problem."
2016-12-14 17:25 GMT+01:00 krisElphenor [email protected]:
Same problem for me. But even after including the js manually, i still got the same error.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/froala/KMSFroalaEditorBundle/issues/9#issuecomment-267080096, or mute the thread https://github.com/notifications/unsubscribe-auth/AQySYG0JhaguTgA3F-TYRMTKvdbVA2viks5rIBhwgaJpZM4HaWqY .
@gacel112 Yes, I tried that as well, no luck so far...still getting the same error
I solved it by using the getScript function of jQuery.
$.getScript("/path/to/js/froala_editor.min.js", function () { $( "textarea" ).froalaEditor({ ... }); });
Apparently, for me as well, the problem is the js not being fully loaded when the function froalaEditor is called. But i cant't explain why, even after loading the script manually both in the header and at the bottom of the page, I still get the same issue.
So, if someone else has the same problem, jquery getscript could be your 'plan C'
Same here... No solution jet?
Same problem ...
Also same
same issue
any updates here?