Does not support merge mode
Morgul opened this issue · 3 comments
Morgul commented
There is no way, currently, to leverage the Code Mirror merge addon. The tricky thing here is that it's a different constructor, and does not follow the same API as the normal CodeMirror constructor.
It's quite likely that a second directive will need to be created to support this.
okdewit commented
Not guaranteed to be bug-free or feature-complete, I needed to get it working quickly and I'm not an AngularJS expert, so it's a very quick & hacky fix:
Angular Directive for CodeMirror + Merge Addon.
https://gist.github.com/okdewit/0b46319000e78c58cfe2
Still working on it, any input is welcome.
rbw commented
👍
johnAls commented
Perfect CarlAmbroselli/ui-codemirror works for me