AztecEditor-Android
AztecEditor-Android copied to clipboard
Support \n line breaks in multiline tags
We should support using plain \n
line breaks for the elements that support multiline text (like Quotes).
Lots of questions on my end, but for starters: Could you clarify if this is for rich (visual) or HTML mode? Can you provide an example / examples?
I think the original intent behind this ticket was to include, to what we call Calypso mode, the feature of just using \n in html mode (and certainly during visual mode too) to break the lines visually while typing. I think Calypso does write <br />
s to the post content anyway, but it doesn't display it in html mode.
Here's a gif of what I see in Calypso:
And here's the post content saved:
<blockquote><p>line1<br />\nline2<br />\nline2.5<br />\nline3<br />\nline4</p></blockquote>\n<p><code>line1<br />\nline2<br />\nline3</code></p>\n
I can replicate this issue on a self-hosted site (No Calypso), by retrieving the post over XML-RPC.
The content of the post does not include br
but \n
instead.