avoid ie contentEditable element to create paragraphs on Enter key

后端 未结 5 1900
小蘑菇
小蘑菇 2020-12-06 06:49

On InternetExplorer, a contentEditable DIV creates a new paragraph (

) each time you press Enter whereas Firefox creates a
5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-06 07:05

    You can always learn to use SHIFT + ENTER for single line returns and ENTER for paragraph returns. IE behaves like MS Word in this respect.

提交回复
热议问题