Roundcube Community Forum

Release Support => Pending Issues => Topic started by: sergiocarvalho on May 10, 2013, 02:00:55 PM

Title: Line spacing is to big in email editor
Post by: sergiocarvalho on May 10, 2013, 02:00:55 PM
Whenever I start building an email and hit enter to create a paragraph, the space between the lines is to big.
How can I decrease or remove the line spacing from emails I build?

Thank you,
Sergio Carvalho
Title: Re: Line spacing is to big in email editor
Post by: Yoni on May 10, 2013, 06:34:59 PM
Press Shift+Enter for single line.
Title: Re: Line spacing is to big in email editor
Post by: sergiocarvalho on May 10, 2013, 07:08:28 PM
Thank you very much Yoni! That's exactly what I was looking for.

Kind regards,
Sergio Carvalho
Title: Re: Line spacing is to big in email editor
Post by: johnwayne on August 13, 2016, 06:48:21 PM
in roundcube 1.1.0 in program/js/tinymce/skins/lightgray/content.min.css before the first entry of td,th{} enter "p{padding:0;margin:0}" without the quotemarks.
Title: Re: Line spacing is to big in email editor
Post by: JohnMaster on January 26, 2017, 09:00:27 PM
I'm currently using 1.2.3. Is there a way to edit the default behaviour similar to what johnwayne purposed in 1.1.0?
Title: Re: Line spacing is to big in email editor
Post by: JohnDoh on January 28, 2017, 03:36:50 AM
you can edit the tinymce config in this file https://github.com/roundcube/roundcubemail/blob/master/program/js/editor.js#L40 and add `forced_root_blocks: false`, see http://archive.tinymce.com/wiki.php/Configuration:forced_root_block
Title: Re: Line spacing is to big in email editor
Post by: JohnMaster on January 28, 2017, 09:58:25 PM
Thank you, JohnDoh. Helps immensely.
Title: Re: Line spacing is to big in email editor
Post by: JohnMaster on March 18, 2017, 02:18:55 AM
Unfortunately, I didn't confirm it working and moved on to other issues. Apparently, forced_root_block doesn't work any more.

'forced_root_block: false' deprecated.
https://github.com/tinymce/tinymce/issues/2634

EDIT: Bounty added. https://www.bountysource.com/issues/29934196-is-forced_root_block-false-deprecated
Title: Re: Line spacing is to big in email editor
Post by: manwithahammer on August 09, 2023, 12:27:46 PM
This actually works, but you have to add "forced_root_block: false" to the minified version of the editor, editor.min.js. Search for anchor_top, and add it right after that.