PANmedia / raptor-editor

Raptor, an HTML5 WYSIWYG content editor!
www.raptor-editor.com
GNU General Public License v3.0
533 stars 136 forks source link

Raptor deletes bootstrap's $.fn.modal function #179

Open k98kurz opened 9 years ago

k98kurz commented 9 years ago

If raptor is loaded after bootstrap, $.fn.modal becomes undefined. If it loads before bootstrap, raptor breaks entirely. Very strange behavior.

Currently, the only work-around I've found is to insert <script>window.modal = $.fn.modal;</script> before loading raptor.js and <script>$.fn.modal = window.modal;</script> after it. This is a pretty serious compatibility issue; I may have to use a different editor if I encounter more incompatibilities.

Petah commented 9 years ago

Raptor is currently designed to use jQuery UI, there is probably a conflict between jQuery UI's modal and bootstrap's modal.

k98kurz commented 9 years ago

This is not the case. This only occurs when Raptor is loaded; jQuery UI can load safely with bootstrap. I don't know why. It is really bizarre.