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

ui-codemirror placed within custom directives fails without an error #36

Open HarishAtGitHub opened 10 years ago

HarishAtGitHub commented 10 years ago

I am trying to use ui-codemirror angular directive from code mirror angular library and the use case is that I have to place it within a custom directive .

But when I place it within a custom directive I am unable to see the code mirror in the text area. infact the text area becomes non editable .

But when I place it outside the custom directive it works as expected .

I am attaching the fiddle code for this http://plnkr.co/edit/NVFuumrGq2FJ8d8EC8Xn?p=preview . I have no option to even debug since there is not even an error . Unable to conclude if it is a bug.Please guide me .

douglasduteil commented 10 years ago

Right it's following #24 I can't fix it for now... so you will have to deal with a custom version sry

btm1 commented 10 years ago

This isn't a bug in Angular or code mirror you simply have to adapt the directive to work after 1.20 release of Angular http://plnkr.co/edit/MaIpdJsPE6qpYqR8BJtQ?p=preview