investigating How Can One Change the Default Line Spacing for Returns?

Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
First off, it appear to be a "global" or "site wide" phenomenon common to all the tinyMCE editors.

By default, 2 line spaces seems to be set for a return. It gets really noticeable when one is importing content from elsewhere (like Ning).

If the previous site followed normal conventions, two returns were used to generate the same amount of space between paragraphs, but now that's turned into 4 line spaces which is too much.

Consequently, one has to edit all imported content (if it is to look right) which is too time consuming for a large Ning network import.

My question is, how can this be changed globally so that one return equals one line space?


--

Ken Rich
indiegospel.net

updated by @ken-rich: 07/09/16 09:21:02AM
brian
@brian
11 years ago
10,148 posts
Unfortunately this is not even close to as simple as it seems like it should be (TinyMCE makes it hard). Jamroom uses paragraphs (p tag) instead of breaks (br tag) in the TinyMCE config - because if you don't use p tags instead of breaks, then a bunch of the tinymce functionality is lost.

You're welcome to play around with the tinymce config:

modules/jrCore/templates/form_editor.tpl

but I would recommend not doing so. If this is a problem with imported items from Ning, we could possibly do something on import to clean them up (if I remember right we already are doing something in this area, but it could be we need to do additional modifications).

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 12/29/14 09:23:54AM
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
Hi Brian,

I was cleaning up some imported discussions and noticed it. Some things are spaced out way too far.

It's not too bad if one goes through paragraph by paragraph and replaces with one Jamroom return, but that's time consuming. If there was an automatic way to do that, it would be a real time saver.

Then in the bio section of the Profile index, I wanted to bring two paragraphs closer together but found I couldn't. Not the end of the world, but it would be nice to have a more fine grained control.

I'm not adept enough to play around with tinyMCE, but if there were a way to change modes depending on what one was doing, perhaps that would solve it.


--

Ken Rich
indiegospel.net

updated by @ken-rich: 12/29/14 09:23:54AM
brian
@brian
11 years ago
10,148 posts
Ken_Rich:
I'm not adept enough to play around with tinyMCE, but if there were a way to change modes depending on what one was doing, perhaps that would solve it.

I'm not sure I understand what you mean by "change modes" - sorry!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 12/29/14 09:23:54AM
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
Hi Byron,

You are saying that there is more functionality in paragraph mode (p tag), but the wide space problem. So that would be one mode.

You are saying that in breaks mode (br tag) the space problem is gone, but so is some functionality.

So I was thinking, is there a way to put a button on there, to switch it from one mode to another (br tag) or (p tag) so that in effect we could have the best of both worlds.

I don't know how it works, so maybe that's an impossibility. I was just thinking out loud I guess.


--

Ken Rich
indiegospel.net

updated by @ken-rich: 12/29/14 09:23:54AM
brian
@brian
11 years ago
10,148 posts
Ken_Rich:
So I was thinking, is there a way to put a button on there, to switch it from one mode to another (br tag) or (p tag) so that in effect we could have the best of both worlds.

Got it - unfortunately this is not something the editor supports - the setting is a very "low level" setting.

Sorry!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 12/29/14 09:23:54AM
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
No problem. Thanks for looking into it...


--

Ken Rich
indiegospel.net

updated by @ken-rich: 12/29/14 09:23:54AM
brian
@brian
11 years ago
10,148 posts
No problem!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 12/29/14 09:23:54AM