appsmith
appsmith copied to clipboard
[Feature]: Rich Text Editor Widget: Reduce space between two lines
Is there an existing issue for this?
- [X] I have searched the existing issues
Summary
Currently the space between two lines in the Rich Text Editor seems a little more than required and looks ugly. Pasting the difference between Rich Text Editor
and Google Sheet
:
Why should this be worked on?
Improve Rich Text Editor asthetics.
We can change the default line height to achieve this, adding a link. Thanks for the issue Sumit.
https://www.tiny.cloud/blog/tinymce-margins-line-height-spacing/
Can I work on this issue ?
Hello, please assign this issue to me
@dilippitchika Can I work on this
Greetings @gospeller986 @RishikaKant @sanjus-robotic-studio thanks for showing interest 🎉. Assigning to all of you for now. If anyone of you could raise a PR soon, it would be great. Please set the line height to 1.15
Please don't forget to read the Contribution Guidelines. Would appreciate if you can open a PR within the next 2 days. let us know here
@dilippitchika i have raised an PR , please review it
@dilippitchika Is there any error in the change made by me ? Where am i going wrong ?
Hey @dilippitchika Can someone point us in the right direction. I too tried but the default height is not changing. But when we press shift and click on enter the line height is smaller. And also I have found a way to add the line height parameter in the tool bar and it works. Will it solve this issue ?
Sorry @gospeller986 i can't see your pr linked yet. Can you please ping it here?
@sanjus-robotic-studio yes exposing the line height control is good enough.
However to decrease it further we have to update the margins used by <p>
tags. I would advise against this as this impacts users who press shift enter. I have attached some links below for further reading -
https://stackoverflow.com/questions/8463621/decrease-the-line-spacing-in-tinymce-textarea https://stackoverflow.com/questions/57957512/how-to-disable-tinymces-shiftenter-behavior
So can I create a custom css
Please don't create custom css, we as a team want to avoid adding custom css classes.
Ok, So Can I disable the shift+enter functionality
Or Can You give us the suggestions which can be implemented
@dilippitchika What can we do for this issue?
Apologies for the delayed response @sanjus-robotic-studio , here are the next steps
- Allow users to change the line height for now, with the new line height property in the toolbar
- Don't make any other changes as of now
Ok will do those qn and create a new PR now