Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Paragraphs within editor with no space between them #25

Closed
ilikourou opened this issue Jul 25, 2019 · 1 comment
Closed

Paragraphs within editor with no space between them #25

ilikourou opened this issue Jul 25, 2019 · 1 comment

Comments

@ilikourou
Copy link

Hello,

The html code of the content I have entered into Froala is the following:

<p>Hello</p>

<p>New paragraph</p>

However, within the editor there is no space between the paragraphs:
Screenshot 2019-07-25 at 12 03 06

I have not made any changes to the default options, rather than adding
'entities' => '&quot;&#39;&iexcl;&cent;&pound;&curren;&yen;&brvbar;',

Thank you.

@slavarazum
Copy link
Collaborator

Hi!
By default, Nova resets margins for paragraphs to 0 and Froala hasn't it own styles for paragraphs.
If you want to declare your own styles for froala editor, you could create your own stylesheets:

froala_styles_custom.css

.fr-view p {
    margin-bottom: 10px;
}

and include it to Nova:
https://nova.laravel.com/docs/1.0/customization/tools.html#assets

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants