angular-ui / ui-tinymce

AngularUI wrapper for TinyMCE
MIT License
488 stars 371 forks source link

Original content wiped out & inline option broken it seems #221

Closed jzevin closed 8 years ago

jzevin commented 8 years ago

The content within the containing element is being wiped out and not the same behavior as regular TinyMCE

Also _{inline: true}_ cause it to break

http://codepen.io/z3vin/pen/jWzMww

deeg commented 8 years ago

The inline works if you change the textarea to a div. This is not an issue with this library but a limitation of tinymce itself.

As for the initial content, rather than putting it in the text area, assign it as a string to the variable in ng-model and it works just fine. What is happening is since you have ng-model pointing to a variable with no data, it is changing the value of the editor to that.

I am going to close this issue as there is no bug, but feel free to ask questions, and I will help you more here the best I can.