Closed muqeet-khan closed 7 years ago
Do you only need the raw text format, or do you ned the regular HTML format from the model binding as well?
I believe you could set raw:true
on the options which would make the model binding the raw text value instead.
If you need both, you could probably surf the dom and extract the ID out of it, but I know that is not pretty. Let me think on it and see if I can come up with anything else more elegant.
Closing this due to inactivity. Please feel free to open another issue if you believe you have a valid bug.
Hello, I have a scenario where I have 3 editors on the same page for 3 different model properties. I need to be able to access the content for these in raw from tinymce along with the HTML.
For now,
is the HTML and JS as follows:
All of the above works and I get the data in editor and also back in the JS when the submit button is clicked. I can also do the following:
vm.submission.conclusionSansHTML = tinymce.get('ui-tinymce-1').getContent({ format: 'text' });
however, the ID changes when the page is refreshed after submission and the above line starts failing. I have read I can not insert by own id's to these textareas so I was hoping some one had a solution to this issue. Thanks!