Firefox (v.58.0.2) has been tested and I noticed issues with the line breaks being by default <br>
tags, even though that according to their Developer Guide it is a non-standard feature:
Addtionally, Firefox suupports non-standard argument, br, for defaultParagraphSeparator since Firefox 55.
And <div>
tags are the standard way to go, described as well in their guide:
Fortunately, in modern browsers things are somewhat more consistent. As of Firefox 60, Firefox will be updated to wrap the separate lines in <div>
elements, matching the behavior of Chrome, modern Opera, Edge, and Safari.
For this editor, the browser default is always used. However, if you choose to use <p>
tags instead, you might want to set the useParagraph
option, which results in document.execCommand("DefaultParagraphSeparator", false, 'p');
being executed. Here as well, Firefox doesn't change the behaviour and adds the "non-standard" <br>
tags instead.
Please use Chrome instead if you encounter any issues with it. Known issues with Firefox are, that images (and other elements) might not be placed at the right caret position.
I'd be very thankful for any help on this!
Edit: I just realized, that only with version 60, the standard method using <div>
s will be implemented in Firefox. Is there any way to create a workaround until then?