I'm new to CKEditor and trying to load some data from an API request. Unfortunately, I can't get the formatting to load properly.
This data is loaded into the <textarea> that is eventually replaced using CKEDITOR.replace():
"\n 1. Question 1: answer1\/answer2\/answer3\n\n 2. Question 2: Combination, single, etc.\n\n 3. Question 3?\n\n 4. Question 4\n\n 5. Question 5\n\n 6. Question 6\n\n 7. Question 7.\n "
Notice, there are spaces and newline characters in the data. If I view the <textarea> in the DOM, it shows the value formatted as I'd expect. In CKEDITOR, I get this:
"1. Question 1: answer1/answer2/answer3 2. Question 2: Combination, single, etc. 3. Question 3? 4. Question 4 5. Question 5 6. Question 6 7. Question 7."
Is it a problem with how I insert the text? That is, I put the value into the textarea and then initialize CKEDITOR instead of initializing CKEDITOR and then doing a setData? Is there a way around this?
Thanks,
Dallas