Which of the following code snippets is the correct way to get content from Tinymce via javascript ?

By ·
Which of the following code snippets is the correct way to get content from Tinymce via javascript ?
Answers:
1.      document.getElementById(‘content’)
2.      tinymce.activeEditor.getContent();
3.      tinymce.element.getContent();

4.      document.getElement(‘tinymce_content’)
GA
Gaurav Arora, Digital Media Lead. 10+ years running paid media and tracking for brands in the USA, UK and Canada.