--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/HdjWUtZ-hKUJ.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/863NQGrnZS8J.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
Actually you are 'programmatically' pushing to the array. I tried moving the related logic into a wrapped function in the controller and simply calling it but it has the same issue.
Try actually TYPING something into the input box. You will notice that inputs that have been inserted later do not properly update their content attribute.
On Sat, Mar 3, 2012 at 3:36 AM, Matthias Andrasch <matthias.andrasch@googlemail.com> wrote:
Thanks for the tinymce example!If I change it to <a ng:click="boxes.push()">Add New</a> it works for me:Seems to be a problem with the bracket notation in 10.5.
Regards,
Matthias
On Monday, January 9, 2012 11:41:28 PM UTC+1, ProLoser wrote:I figured it out! Check it out: http://jsfiddle.net/ProLoser/nTzRA/Had to leverage some callbacks in TinyMCE to forcibly update the <textarea> (which apparently occurs right before save only) and also manually trigger the change event so that AngularJs is aware of the change and updates the data accordingly.There's a small bug when I added <a ng:click="boxes.push({name:'new'})>Add New</a> however. Not sure why. If someone could take a look would be appreciated!
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/863NQGrnZS8J.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
Dammit. I had a similar problem for my Select2 plugin when I ported it to 1.0. It appears the triggers for change and updates being reflected into ng-model keep breaking. My coworker found a strange workaround that I'm not too happy with. I really with the core team would chime in on this one.BTW: you may also need to do timeout(0) before initializing TinyMCE. I found out (in 10.5) that the way templating worked, when a new DOM object was injected before the entire page's template was finished compiling it would mess up the order and Angular would start losing its references to the proper DOM elements. The timeout allows the plugin to be binded after angular's compiler finishes. This too is a poor hack, and slow-to-compile pages would still throw errors.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/b1fpKH6e3-wJ.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
Guys,I was trying the code on a simple page and but seems to throw an error. I have attached the file, any thoughts on what could be wrong?Object [[object HTMLTextAreaElement]] has no method 'tinymce'
To unsubscribe from this group, send email to angular+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/xmfS0kE57KIJ.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.