Change the HTML space between lines.

Yamja
Tera Guru

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.

Yamja_0-1698943292932.png

and the HTML field data look like this

Yamja_1-1698943360039.png

 

Please some one help me and I want this functionality in all HTML fields

 

Thanks

Theja

 

 

1 ACCEPTED SOLUTION

Yamja
Tera Guru

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.

View solution in original post

6 REPLIES 6

Hi Sandeep,

 

Can you elaborate more. Where can I go and change the line - height

 

Thanks

Theja

 

Yamja
Tera Guru

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.