tinymce-react
tinymce-react copied to clipboard
Double New Lines
When I convert editor content to text format, It takes double lines instead of a single line.
editor.getContent({ format: "text", })
EditorValue
<p>Line 1</p>
<p>Line 2</p>
Is converted into
Line 1
Line 2
It Must Be
Line 1
Line 2
Note: One Extra Line was added Between "Line 1" & "Line 2".

Ref: INT-2994
@vishwajit76 - This is NOT an issue. To achieve the required behaviour. Just do the following -
Pass the following into the init object -
newline_behavior: "linebreak"
You would get the required behaviour. Refer to the official docs for v6 - newline_behavior parameter
Here is code-sandbox link with the required setting
In the console tab - You would see the see the text content.
Screenshot -