- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2023 09:43 AM
Hi,
I have a requirement that reduce the space between lines in HTML field.
Can someone please let me know how can achieve this.
I tried change the HTML source code from<p>text</p> to <br>text</br>, But still getting the line space for new lines.
and the HTML field data look like this
Please some one help me and I want this functionality in all HTML fields
Thanks
Theja
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2023 01:52 PM
Hi,
I found the solution for reducing line space.
Wrote below script to force HTML editor from P to br
"function onLoad() {
//Type appropriate comment here, and begin script below
addAfterPageLoadedEvent(function() {
tinymce.EditorManager.editors[0].settings.force_br_newlines = true;
tinymce.EditorManager.editors[0].settings.force_p_newlines = false;
tinymce.EditorManager.editors[0].settings.forced_root_block = "";
});
}"
Thank you for your responses.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2023 12:47 PM
Hi Sandeep,
Can you elaborate more. Where can I go and change the line - height
Thanks
Theja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2023 01:52 PM
Hi,
I found the solution for reducing line space.
Wrote below script to force HTML editor from P to br
"function onLoad() {
//Type appropriate comment here, and begin script below
addAfterPageLoadedEvent(function() {
tinymce.EditorManager.editors[0].settings.force_br_newlines = true;
tinymce.EditorManager.editors[0].settings.force_p_newlines = false;
tinymce.EditorManager.editors[0].settings.forced_root_block = "";
});
}"
Thank you for your responses.