Questions tagged [parchment]
31 questions
7
votes
2 answers
Having problems extending Quill
I'm hitting some problems extending Quill.
I want to modify the List and ListItem classes in Quill, so I tried to copy formats/list.js into my code base as a starting point. I then import my local copy and register it with Quill like so...
import {…

Rik Heywood
- 13,816
- 9
- 61
- 81
5
votes
1 answer
Quill: Which method called when blot changed?
I need to do something when text, wrapped with my own blot, changed.
From parchment documentation i got that method update will called when blot changes.
I try to use it in code, but this method does't called when text, wrapped with my blot,…

S. Zobov
- 154
- 2
- 15
5
votes
2 answers
Quill.js extending Blot / Parchment changes not captured in delta
I am getting to grips with quill.js- I would like to be able to create a custom blot with content that is preset, but which I can change.. I have figured out how to create a block embed blot from the medium clone guide, but I have noticed that the…

Sean D.
- 171
- 1
- 7
5
votes
1 answer
quil js parchment error
I get a an error when trying to use a formula module in quill.
The error is:
"[Parchment] Unable to create formula blot"
Following the error message in chrome web development tools leads to the following line in registry.ts…

Ayrad
- 3,996
- 8
- 45
- 86
4
votes
1 answer
Can Quill BlockEmbeds use arbitrary tags?
I've got a bunch of components (pieces of html and logic) that I want to be able to embed inside a Quill document, and I'm not entirely sure how to get started. Each component has a single root element, but the tagName is arbitrary (there are aside,…

nelsonpecora
- 300
- 3
- 9
3
votes
0 answers
Adding Footnotes (or margin notes etc.) to The Quilljs Editor
I'm looking for a way to add footnote / endnote functionality to the QuillJS.com editor. My requirements are that the note 'text' itself can still be edited as if it were document text -- hiding it away in an attribute is probably not going to work…

user2449525
- 158
- 8
3
votes
0 answers
How to create nested inline blots with the same tag name?
I am working with Quill and I am trying to create a custom blot where it would be possible to nest several of this blot. The purpose of this is that I want parts of the text to be shown only if certain conditions are matched, like an if statement.…

Matheus Hoeltgebaum
- 163
- 1
- 11
2
votes
1 answer
Quill - after.appendChild is not a function
Here's the Code Sandbox reproduction.
https://codesandbox.io/s/intelligent-chihiro-9rp0d?file=/src/index.js:1285-1329
I've got a place in my application, where I need to insert the contents for the quill editor (a disabled one) so that a user could…

smellyshovel
- 176
- 10
2
votes
2 answers
Quill Span Blot Formatting
const Inline = Quill.import('blots/inline');
export class Track extends Inline {
static blotName = 'track';
static tagName = 'span';
static formats(node) {
return {
color: node.getAttribute('color'),
cid:…

Alec Aldrine Lakra
- 355
- 1
- 4
- 14
2
votes
0 answers
Why does custom inline blot merge/combined with previous inserted blot
I created my own custom inline blot for Quilljs below:
import Quill from 'quill'
var Inline = Quill.import('blots/inline')
class EmojiBlot extends Inline {
static create(colons) {
let node = super.create()
node.dataset.emoji = colons
…

Brian Barton
- 33
- 1
- 6
2
votes
0 answers
Quill custom blots: how to make Quill accept "incoming" custom code
I'm using Quill in a project where I need make Quill "understands" some custom code when it initializes and when the editor's content is updated from the API.
To keep it symple: lets say I have a database where I have, for example, a field with this…

Voice in the Desert
- 23
- 5
2
votes
1 answer
What's the correct way of defining style attributes in Quill Parchment
I've tried all the examples in the Parchment docs, but none of them work correctly. For example, using the following code from the documentation...
import Parchment from 'parchment';
let Align = new Parchment.Attributor.Style('align', 'text-align',…

Rik Heywood
- 13,816
- 9
- 61
- 81
1
vote
0 answers
QuillJS add custom blots for freemarker variables
So I have integrated the editor just fine and would like to use it as an online templating editor.
On the backend we use freemarker to process the template and therefor I need to be able to have freemarker tags supported in quill.
My example case is…

David Fariña
- 1,536
- 1
- 18
- 28
1
vote
1 answer
Weird scrolling bug with Parchment
We recently decided to try and incorporate Parchment into our app since it would suit our needs perfectly.
We also added a collapsing header effect with it.
So we first made a test project to test it out and just as we had refactored it into our own…

Peter S
- 39
- 5
1
vote
1 answer
Navigation bar disappears after the app comes to the foreground again
I'm using Parchment to add menu items at the top. The hierarchy of the main view is the following:
NavigationView
-> TabView
--> Parchment PagingView
---> NavigationLink(ChildView)
All works well going to the child view and then back again…

mota
- 5,275
- 5
- 34
- 44