AztecEditor-Android icon indicating copy to clipboard operation
AztecEditor-Android copied to clipboard

Support \n line breaks in multiline tags

Open hypest opened this issue 8 years ago • 3 comments

We should support using plain \n line breaks for the elements that support multiline text (like Quotes).

hypest avatar Dec 02 '16 10:12 hypest

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?

diegoreymendez avatar May 21 '18 16:05 diegoreymendez

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: calypso-multiline-enter

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

hypest avatar May 22 '18 08:05 hypest

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.

daniloercoli avatar May 22 '18 08:05 daniloercoli