Code Monkey home page Code Monkey logo

Comments (6)

marclave avatar marclave commented on July 21, 2024 8

hey @chrisronline I did this to register multiple class names to a blot

class HeaderBlot extends Block {
  static create() {
    const node = super.create();
    node.classList.add('subheading');
    node.classList.add('secondary-color');
    return node;
  }
}

Hope this helps!

from parchment.

chrisronline avatar chrisronline commented on July 21, 2024 1

It’s just how our CSS heirarchy is setup - we could possibly change that but I don’t see why multiple class names isn’t a valid use case and something that is seemingly easy to support

from parchment.

chrisronline avatar chrisronline commented on July 21, 2024

On a separate note, the reason I'm using spann is because of this issue in quill and I don't know a better way around it. Feedback/thoughts are more than welcome!

from parchment.

jhchen avatar jhchen commented on July 21, 2024

Why do you need multiple classes as opposed to one unique one?

from parchment.

jhchen avatar jhchen commented on July 21, 2024

It's not easy to support. All features require ongoing maintenance and tests and all future features would have to consider interaction with this feature. Second it is not correct that just turning that line into a loop is all it would take.

from parchment.

chrisronline avatar chrisronline commented on July 21, 2024

Thanks for clarifying! I’m sorry if I assumed it was a simple request but I appreciate your time and patience. I’ve been using Quill/Parchment for just a short time and it’s been great so far!

from parchment.

Related Issues (20)

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.