The infamous Mozilla core editor

Ehsan Akhgari ehsan.akhgari at gmail.com
Fri Mar 6 14:04:21 UTC 2015


On 2015-03-06 8:47 AM, Axel Grude wrote:
> I know there is a bug for this but I cannot find it:
>
>   * In HTML mode, "Paragraph" style should be preselected, not body.
>   * Enter should create / split <p> </p>
>   * Shift-Enter should create <br>

You can use nsIHTMLEditor.returnInParagraphCreatesNewParagraph 
<http://mxr.mozilla.org/mozilla-central/source/editor/nsIHTMLEditor.idl#551> 
to control whether pressing Enter creates a new paragraph or injects a 
BR element.  The editor doesn't natively support treating Shift-Enter 
differently yet.




More information about the tb-planning mailing list