Questions tagged [parchment]
31 questions
1
vote
0 answers
Uncaught TypeError: Cannot read property 'Attributor' of undefined Quill parchment
I using quill parchement with laravel but i am getting cannot read property 'attributor'
my code:
let Align = new Parchment.Attributor.Class('align', 'blot-align');
Parchment.register(Align)
let node = document.createElement('div');
Align.add(node,…

Balaji
- 9,657
- 5
- 47
- 47
1
vote
0 answers
Adding schema markup attributes into Quill.js inner HTML
I’m trying to add a custom button to add FAQ markup schema within my quill editor (Question, AcceptedAnswer). So far I have it working with Registering the buttons in the toolbar, and then slightly alternating them upon save with Nokogiri to add the…

Emily Green
- 31
- 1
1
vote
1 answer
Why after each entered letter in TextField keyboard closes and how to fix it better?
I have ObservableObject for my parent view and child view:
import Parchment
class MainViewModel: ObservableObject {
@Published var inputText = String()
init() {}
}
struct ChildView: View {
@EnvironmentObject var viewModel:…

snitron
- 71
- 9
1
vote
0 answers
Unable to create custom BlockEmbed using Quill 2.0-dev3
We have been using Quill 1.3.7 for a while. I had some custom embed blots written that were working without issue. We then upgraded to 2.0.0-dev3 to gain new functionality and this has broken our custom blots. I receive the following error when I…

Hunter
- 11
- 1
1
vote
0 answers
Creation of a Formula Blot (Hierarchical Tags)
Creation of a complex formula blot, such as the one below, is successful using an Embed, but it works only in a single instance. All other instances are truncated. Attempts to create it as an Inline or Block resulted in errors.
I am developing a…

davidquinnjacobs
- 31
- 3
1
vote
1 answer
Quill JS custom blot inserting the text "true" instead of the correct text
I'm using Blots to create custom quill elements, but I'm getting some weird results when trying to set the editors contents with a stored Delta. It's kind of difficult to explain with words so I created a codepen with a reproducible…

Jacob
- 524
- 5
- 18
1
vote
1 answer
Quill font format is ignored
I have the instance and the Quill editor.
As well, i use custom fonts for my toolbar:
Font.whitelist = ['roboto', 'roboto-mono'];
Quill.register(Font, true);
Then i use font roboto-mono for text. When i save the innerHTML from the .ql-editor I…

SashaSemanyuk
- 357
- 6
- 20
1
vote
1 answer
Making a custom blot in typescript
I'd like to be able to extend native blots as seen in cloning medium w/ parchment. I am using angular2 with typescript, and typescript does not believe that BlockEmbed is a real constructor.
Using the following code (pretty much directly from above…

pixelpax
- 1,435
- 13
- 22
0
votes
0 answers
Sticky UIView in scrollview changes position after scrollview height set programmatically
I have a UIScrollView in which I have taken a view that will scroll with other views when it comes to the top it will stick to the top of the screen but I have another pagination on the same page for that I changed UIScrollView height for each page…

NickCoder
- 1,504
- 2
- 23
- 35
0
votes
0 answers
Quill rich text editor bold option not working with quill-mentions
My Quill text after tagging is not getting bold even though the Bold option is selected. I am using quill-mentions for tagging operation.
import QuillMention from "quill-mention";
This is the sample that I am getting:
Hi
Sahil
0
votes
0 answers
Creating a custom list blot but when inserting onto the editor, list-items are not wrapped in a parent container
I am trying to create a button on the Quill toolbar, which when called creates a list-item and wraps it in a parent list-container (if it the parent of the list-item is not already the list-container).
I have followed the example of the List format…
0
votes
0 answers
Prioritise element hierarchy in Quill / Parchment
When using React Quill I am trying to keep the elements in a specific order so that we can can handle clicks on the annoations accordingly (along with things like hover effects etc)
Currently, we highlight text in strings. This is currently how…

Conor Reid
- 578
- 3
- 16
0
votes
0 answers
Swift Parchment library, menu bar doesnt show up
so i making this feature and im using Parchment pod
and i somehow the menu bar doesnt show up, but i can swipe horizontally
*im using storyboard method
this is my code :
import UIKit
import Parchment
class ParchmentController:…

afi permana
- 207
- 3
- 17
0
votes
1 answer
How can I add an attribute to every `p` element in quilljs?
How can I add an attribute to every Block element in quilljs?
I know that I can extend a Block, but is it possible to add an attribute even when pressing "Enter" on the keyboard?
let Block = Quill.import('blots/block');
class ParaBlot extends Block…

Josh Voigts
- 4,114
- 1
- 18
- 43
0
votes
1 answer
Gradient background not working if we replace an UIView instead of UIImageView in HeaderExample of Parchment
I am using parchment library for pagination in my application. When I replace the UIImageView with a UIView in the header example of Parchment, gradient background is not working. I only see white screen.
Gradient works if I add separately in a…