GetSimple Support Forum
Non-breaking space - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Non-breaking space (/showthread.php?tid=545)



Non-breaking space - Patrick - 2010-03-21

Hello,

Is it possible to insert a non-breaking space (&nbspWink in the page editor?


Non-breaking space - Zegnåt - 2010-03-21

Maybe when you switch to code view, but I don’t think CKEditor supports it. However, there are very little places that actually need a non-breaking space so I don’t think it’s a mayor thing.


Non-breaking space - Patrick - 2010-03-21

I don't know for other languages, but it's very useful in French typography.


Non-breaking space - Zegnåt - 2010-03-21

Hmm, I haven’t often see spaces between words and punctuation marks. Does it work to put   in the code editor?


Non-breaking space - internet54 - 2010-03-21

It inputs the space code automatically.


Non-breaking space - Zegnåt - 2010-03-21

internet54 Wrote:It inputs the space code automatically.
CKEditor will never put non-breaking spaces in your content.

ZegnÃ¥t Wrote:Does it work to put   in the code editor?
I gave this a test, and it does. Just write your whole page and then press the “source” button. All   that you will insert there seem to make it into your pages.

If you always need them in certain cases it might be worth it making a plugin that automatically will swap normal spaces in certain cases with  . This will save time in the long run, and help clients to not have to edit the source output of CKEditor.


Non-breaking space - internet54 - 2010-03-21

^ My editor allows spaces in the visual editor with out inserting &nbsp in the code.


Non-breaking space - Zegnåt - 2010-03-21

It only does that with multiple spaces after each other and it will not even keep the whitespace from breaking (as either the first or the last space will be a normal one). I don’t think that’s what Patrick needs for French typography, which I would guess means he needs to put one (!) space between a word and its following punctuation mark.


Non-breaking space - Patrick - 2010-03-21

You're right Zegnåt, I need to put a nbsp before these punctuation marks:
; : ? ! « »
and also at some other places, like before a unit or after an abbreviation.


Non-breaking space - Zegnåt - 2010-03-21

As I stated, the only way would be by switching into source mode and putting them in by hand. Or forget about them when editing the page and make a plugin that will swap all spaces before the signs you just mentioned into non-breaking spaces.