The editor wraps all the text with P tags. Also, when hitting ENTER, I get large space between paragraphs. Is it possible to disable this behavior?
By default the editor is using P tags. When ENTER key is hit, a new P tag is created. You can change how the enter key behaves by using the enter option. There is also an example for each mode: https://www.froala.com/wysiwyg-editor/examples/enter.
There are 2 possible approaches for your problem:
- Set the enter option to $.FroalaEditor.ENTER_BR. In this case you wouldn't get any wrapping at all. This is ideal for writing emails.
- Set the enter option $.FroalaEditor.ENTER_DIV and have each paragraph wrapped with a DIV tag instead of P.