How can i make the space between the sentenses smaller.
How can i make the space between the sentenses smaller, i want this for all accounts.
-
-
·
LeonidS
- ·
Hello @dvcgraphics !
In the Custom Styles area of your template (in Studio) you need to set a new value for the following CSS class
.ql-editor p {
line-height: [new value]rem;
}
-
·
LeonidS
-
- · Busimatch
- ·
So, i do have to do that in wich php file, the template is the template of Una.
Sorry, i am not a professional. ( but learning )
-
-
·
LeonidS
-
·
In reply to Busimatch
- ·
No need to change something in the code. If you use the Artificer template, go to the Studio->Artificer->Custom Styles area, and add and save the provided CSS code. Refresh your browser.
-
·
LeonidS
-
- · Busimatch
- ·
What is a good value?
.ql-editor p {
line-height: [3]rem;
}
-
- · Busimatch
-
·
In reply to LeonidS
- ·
Do you mean paste the code here?
Is 3 good?
-
-
·
LeonidS
-
·
In reply to Busimatch
- ·
By default, it has the 1.75rem so try to reduce it to 1rem
-
·
LeonidS
-
- · Busimatch
- ·
I clicked Save, restarted php
Still the same :(
-
- · LoneTreeLeaf
- ·
This stems from the Quill editor itself. There's been issue requests submitted to their GitHub repo to remove double spacing but it's been rejected.
-
- · LoneTreeLeaf
- ·
People got fed up with this issue not being resolved and ditched the editor outright.
https://github.com/slab/quill/issues/1074
@LeonidS the issue is not the line height but Quill forces a line break tag alongside the paragraph tag, which creates the double space.
-
@LoneTreeLeaf@LoneTreeLeaf, how to solve this question?
-
- · Wise
- ·
We need to switch to TinyMCE, its been the GOAT forever. And it is much better maintained.
-
- · Alexey Mir
-
·
In reply to Wise
- ·
Great, how? What should we do?
-
- · Corey Dozier
- ·
Has anyone found a solution to this that can be implemented? It looks silly and increases the size of posts on the timeline for no good reason.
-
- · LoneTreeLeaf
- ·
I'm with @Wise on this one. TinyMCE should have been the standard editor that UNA provides out of the box. It's miles ahead of Quill and the devs actually listen to their community.
-
You would need to get your hands dirty deep within the Quill source code, this cannot be fixed by any means using the UNA frontend.
https://github.com/slab/quill/issues/1074#issuecomment-2393391892
-
Ok, so it's not a template thing?
-
Correct.
-
This guy has solved his custom Quill toolbar add-on:
React Quill add line-height to custom toolbar
https://medium.com/@genyadstph/react-quill-add-line-height-to-custom-toolbar-91a8717394c8
-
I also found this:
Replace 'p' tag with 'div' by adding the the following lines. It will solve your mail spacing issue.
var Block = Quill.import('blots/block');
Block.tagName = 'div';
Quill.register(Block);
-
Line 1
Line 2
Line 3
Interesting: Selecting all text right here in this discussion block and changing the format to header 6 removes the spacing.
-
The problem has not been fixed as the solution offered, and is still part of the script, has been removed from Quill 2-0.md.
matchVisual
removed - Previously there was a choice between using visual or semantic interpretation of pasted whitespace; now just the semantic interpretation is used. Visual matching was expensive, requiring the DOM renderer which is no longer available in the new clipboard rewrite. -
- · Mayki
- ·
.... not to mention this almost unusable code editor...
It can not be expanded horizontally just vertically..... 😖
-
-
Still a problem after upgrade to 14.0.0-RC4.
Even here in this text box, it shows the double line spacing...
Line 1
Line 2
-
😩
-
😭
-
The reality is that, this is going to continue to be an issue within UNA because it's a Quill related issue (their choice of text editor within their software).
Quill devs have been made aware of this issue, and, have chosen to ignore peoples requests to correct this and close out tickets that bring up this issue.
What the issue is, the Quill editor inserts
<p><br></p>
With each and every linebreak, incasing the BR html tag between an open and close PARAGRAPH tag. Thus creating the white space between each line of text. I don't know what they are drinking over there at Quill-land, but it's clear they refuse to lay off the booze.
-
Our kingdom for a better WYSIWYG editor I swear....
For now, band-aid fix is inserting the following in your injections within Designer.
<style> .bx-form-input-html-quill-code { height:500px !important; width:500px !important; } </style>
-
Some of the recommendations by Quill have slipped past the UNA Development Team...
Quill has been significantly modernized. Leveraging the latest browser-supported APIs, Quill now delivers a more efficient and reliable editing experience. https://quilljs.com/docs/upgrading-to-2-0
@LeonidS has committed himself to follow this up.