ui-codemirror icon indicating copy to clipboard operation
ui-codemirror copied to clipboard

Does not support merge mode

Open Morgul opened this issue 9 years ago • 3 comments

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.

Morgul avatar Jan 29 '15 20:01 Morgul

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.

okdewit avatar Feb 06 '15 16:02 okdewit

:+1:

rbw avatar Aug 01 '16 15:08 rbw

Perfect CarlAmbroselli/ui-codemirror works for me

johnAls avatar Nov 21 '16 11:11 johnAls