I'm using CKEditor with JSF (primefaces-extensions jar). And this JAR is using the 4.2.3 version of CKEditor.
It's all ok with the editor component except for a really annoying behavior. It opens alright and as I keep typing the editor correctly breaks lines (when a line reaches the right border it breaks down to next line). However, if i press the source button and then press it again to return to plain text, the editor creates an horizontal scrollbar and the paragraphs are no longer broken to the next line.
I wodnloaded the latest CKEditor version (4.3.3) and as I copy/paste my text the horizontal bar appeared.
There's nothing especial in the text. It's only and ipsum lorem foo plain-text.
was anybody able to fix this behavior?
thanks in advance!
Well, additionally I verified
Well, additionally I verified that this error occurs in FF (27.0.1) and IE (10.0.9), but not in Chrome (33.0).
You wouldn't happen to be
You wouldn't happen to be using the BBCode plugin? If you are, here's a ticket that might interest you. If you're not using BBCode, you might need to give more details: which plugins you have installed, sample before and after code, whatever configs you got implemented, etc.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
sebstefanov,
sebstefanov,
It's not the same problem, but I think i got the problem.
The editor is replacing the blank spaces with the html character . That way, all the paragraph is treated as a continuous string, therefore, unable to break the line and creating the horizontal scrollbar.
Does anybody know a workaround for this?
I'll keep searching here and post any sucessfull results.
I think I got it..
Well, I think I finally got it the way I want. Probably not the most elegant way but as far as I tested it's working smooth.
I had to change de plugin code in ckeditor.js, removing only the nbsp and leaving the other html chars.
So, I changed:
!1 !== b.basicEntities && d.push("
nbsp,gt,lt,amp");and
}, g = j("
nbsp,gt,lt,amp,shy", !0),And now it's not switching the blank spaces for and theres no horizontal scroll! :)