My code works fine when I use textbox and not the TinyMce text area. After using TinyMce in my code, data entered in text area is no longer going into my model.
<script>
tinymce.init({
selector: 'textarea',
width: 900,
height: 200,
toolbar1: "undo redo | styleselect | bold italic underline superscript subscript | cut copy paste ",
statusbar: false,
menubar: false,
plugins: "spellchecker",
font_formats: "Andale Mono=andale mono,times;" +
"Arial=arial,helvetica,sans-serif;" +
"Arial Black=arial black,avant garde;" +
"Courier New=courier new,courier;" +
"Georgia=georgia,palatino;" +
"Helvetica=helvetica;" +
"Symbol=symbol;" +
"Tahoma=tahoma,arial,helvetica,sans-serif;" +
"Times New Roman=times new roman,times;" +
"Verdana=verdana,geneva;",
fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt"
});
</script>
my html File is:
<textarea id="QuestionText" ng-model="send.questiontext"></textarea>
{{send}}
why is object not getting printed or why is data no longer binded to my model. ?