angular-ui / ui-ace

This directive allows you to add ACE editor elements.
http://angular-ui.github.io/ui-ace
MIT License
578 stars 172 forks source link

Pasting data into ACE-UI sometimes screws up mongo #134

Open bostondevin opened 8 years ago

bostondevin commented 8 years ago

When I save some pasted html content into ACE / Angular / and Mongo, sometimes it causes all my mongo queries to completely stop working - corrupting the db. I think it might be the tab characters or something - it only happens sometimes. If I paste it into Sublime Text and then back in, it will work ok. How can I force ACE to save the string properly for Mongo ingestion? Anyone had this issue?

http://stackoverflow.com/questions/34728113/pasting-html-into-mongo-is-breaking-all-my-queries/34731526#34731526