angular-ui / ui-codemirror

This directive allows you to add CodeMirror to your textarea elements.
http://angular-ui.github.io/ui-codemirror
MIT License
378 stars 193 forks source link

Does not support merge mode #91

Open Morgul opened 9 years ago

Morgul commented 9 years ago

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 9 years ago

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 8 years ago

:+1:

johnAls commented 7 years ago

Perfect CarlAmbroselli/ui-codemirror works for me