how to set the style text-indent
See original GitHub issuei want to set the line-style as text-indent just for the head of the line,and if i click the default indent-button will change into add class and the style is padding-left: 3em; but it is not my want of course i try this solution https://github.com/quilljs/quill/issues/1930#issue-290759881
but it will occur this error
Uncaught TypeError: BlotClass.create is not a function
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
HTML DOM Style textIndent Property - W3Schools
The textIndent property sets or returns the indentation of the first line of text. Note: Negative values are allowed. The first line will...
Read more >text-indent - CSS: Cascading Style Sheets - MDN Web Docs
The text-indent CSS property sets the length of empty space (indentation) that is put before lines of text in a block.
Read more >Change Text Indent Style with Javascript - Stack Overflow
Most CSS properties use camel caps: document.getElementById("example").style.textIndent = 'none';.
Read more >Javascript Reference - HTML DOM Style textIndent Property
Syntax. Return the textIndent property: var v = object.style.textIndent. Set the textIndent property: object.style.textIndent='length|%|initial|inherit ...
Read more >HTML | DOM Style textIndent Property - GeeksforGeeks
HTML | DOM Style textIndent Property · length: It is used to set fixed indentation in terms of px, pt, cm, em etc....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, we did solve it. I must not have hit send in my last message.
Here is what our solution looks like. Before looking, please keep in mind that we needed to add a little bit of hackery because of typescript. I will show our original code, then change it to show the important thing that needs to be changed.
In the code, the most import part was:
Before we did the following two ways:
Also, in that code, you might have seen that the
extend
has a constructor type (new(formatName, ...)
). For simplicity, I’m going to show the code as if I didn’t use Typescript:It might be important to know how I register it with Quill:
You can transform the content.