Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Non-breaking space
#1
Hello,

Is it possible to insert a non-breaking space (&nbspWink in the page editor?
Reply
#2
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.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
I don't know for other languages, but it's very useful in French typography.
Reply
#4
Hmm, I haven’t often see spaces between words and punctuation marks. Does it work to put   in the code editor?
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#5
It inputs the space code automatically.
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#6
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.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#7
^ My editor allows spaces in the visual editor with out inserting &nbsp in the code.
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#8
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.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#9
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.
Reply
#10
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.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply




Users browsing this thread: 1 Guest(s)