Unfortunately I couldn't replicate the issue you are facing. Here is the sample code that I tried based on your scenario which works as expected at my end.
editor = $find(
content = editor.get_html(
Please provide your code if this doesn't helps.