Giter Site home page Giter Site logo

Paragraph Spacing about nova-quilljs HOT 4 CLOSED

ek0519 avatar ek0519 commented on August 12, 2024
Paragraph Spacing

from nova-quilljs.

Comments (4)

mikebertiean avatar mikebertiean commented on August 12, 2024 1

I guess my question is, how do we get rid of the margin between paragraphs?
It is saving in the database as:

<p>Some test line is here</p>
<p>Then I press enter, and look at the spacing above...</p>

Is there a way to add some additional CSS or something to clean up that spacing?

from nova-quilljs.

ek0519 avatar ek0519 commented on August 12, 2024

@mikebertiean Did you ever used medium editor, when you press Enter, it also creates the next paragraph, it makes sense.

reference the paragraph's CSS , maybe you can fork this project and override it, but it can't change html's structure, only change paragraph's margin in nova

from nova-quilljs.

mikebertiean avatar mikebertiean commented on August 12, 2024

@ek0519
I see thank you. Yes that would just update the margin in the Nova editor.

If I wanted to add a style inside every paragraph tag to have
"style:margin=0;"

Is that possible? Would you be able to point me in the right direction? I can fork and make the necessary updates.

This has already been a really useful tool, thank you so much for developing it and helping me out.
Much appreciated!

from nova-quilljs.

ek0519 avatar ek0519 commented on August 12, 2024

@mikebertiean
In this css script

.ql-editor p {
  margin-top: 18px;
  font-size: 18px;
}

You can use CSS script .ql-editor to select all content, set p element's style, use the same rule to set other elements' style.

If there are no questions, I will close this issue, God bless Canada :)

from nova-quilljs.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.