-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Unknown provider: eProvider <- e <- textAngularDirective #1
Comments
Are you by chance using the minified version or are you using the development version? |
I'm using the minified version, I tried the development version too, and I got another error:
|
Yep! That's a bug. I totally forgot that the minification process shrinks the dependencies down to unrecognizable forms. $sce isn't included in 1.0.8. That's why you are running into that issue. I'll get fix it right away. Thanks for the heads up! Btw Contributions are always welcome :-) |
I think you should add the "angular support version " to the doc. any way thanks for the reply |
Done and done. The minfied version works now. If you can include the $sce module, it will work. It's shipped with $sce default "on" in Angular 1.2.x |
its working perfectly, but there is one thing : how to dynamically set the html, I use the normal textarea for short input when user open the full writer mode then the editor will show up, however I need the content of the normal textarea to be the initial html ,how can I do that. I already tried
it wont work! |
I'm going to get back to you on this one, I'll have to find a way to allow the setting of the model without an infinite $digest loop occurring. |
Alrighty, I updated textAngular. You should not be able to do what you are wanting. All you have to do, is on your text-editor, make it share the same model as your textAngular instance like: <textarea ng-model='textAngularOpts.textAngularEditors.myTextAngularInstance.html'></textarea> Let me know how it goes! |
nice, it work perfectly! thanks |
Hi @fraywing thank you for this wonderful module, i'm on angularjs v1.0.6 and i have the $sce error how I solve the problem without changing the version. thank you |
Hi @bakkou-badri from memory the code is that if you don't have the ngSanitize module included it won't use $sce. As above $sce isn't included in stable builds of angular below 1.2.2. Apart from that you could try editing the source code manually, but I can't guarantee that will work! |
I'm using angular 1.0.8 , when I inject the textAngular in to my main.js there is error:
any idea why?
The text was updated successfully, but these errors were encountered: