Comments (6)
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.
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.
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.
Why do you need multiple classes as opposed to one unique one?
from parchment.
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.
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)
- unclosed tag in <p><br></p> breaks XML parse. HOT 1
- Paste options for plain text content
- Inline Embed not working in 2.0 branch
- Is this condition of `uiNode` a typo? HOT 2
- registering a new blot does not add it to the allowed children of the scroll object
- block
- How cloud I understand Scope and What is the meaning of & operator between Scope and another Scope
- How to set editor content with html style
- Make v2 the default branch HOT 1
- register Blot unsucessfully
- [Question] Is it possible to define how a blot is serialized ? HOT 1
- How to add custom inline blot (or any blot whatsoever)? HOT 2
- Where can I find the old version commit? HOT 1
- Incorrect descendant typing (ts2769) HOT 1
- Adding a custom Blot HOT 1
- Remove Byte Order Mark (BOM) characters from Blot HOT 3
- Quill editor removes inline style margin-left on loading content
- the img tag is not closed HOT 1
- re-export classes from quill-delta and parchment
- How do we replicate the functionality inside a blot's `replace` function?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parchment.