Is there a possibility to load WYMeditor dynamically using $.getScript() method? I'm trying to enable WYMeditor on-demand by certain AJAX requests and all it returns to me is this error:
- Code: Select all
Błąd: jQuery(jQuery.grep(jQuery("script"), function (s) {return s.src && s.src.match(/jquery\.wymeditor(\.pack|\.min|\.packed)?\.js(\?.*)?$/);})).attr("src") is undefined
File: http://127.0.0.1:8000/public_html/
Line: 1288
Ofcourse everything is okay when I load required JS file statically using <script> tag placed directly in the HTML file, but I don't want to do it this way.