Hi everybody,
I'm sorry for my bad English, so this is my first time I've ever writed here and I'm actually in a project that I have a problem with tags of ckeditor.
I need to wrap each line of ckeditor into new tag, something like this:
Normal function of ckeditor:
<p>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit.Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci </p>
But I need to make sure ckeditor wrap each line
<p>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci</p>
<p>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci</p>
And I don't know if it's possible it's like each time that user is writing automatically break-line and wrap into a new <p>,
Is there a way to make it real?
And I thought it was possible to make it with keyup event but there is a reason to not doing it by this way, and it's because the text sometimes is loaded by default with the website and that means that user is no writing at that moment.
I forgot to tell that I'm using ckeditor 4.0 I think it's not ckeditor 4.1 I downloaded on fabruary of this year
Thanks a lot in advance
Well in default configuration
Well in default configuration it works this way. When you hit Enter ckditor makes it new <p> . When you hit Shitft + Enter ckeditor makes it <br /> . Maybe you had mess something with configuration.
Yes, but without enter, automatically
Hi there,
That's true that if you make an Enter this is the normal configuration, but I need to make it without Enter.
I want to be like this always when you write long text and if the long text break the line automatically because can't hold the large text into ckeditor textarea then break line and wrap whit <p>, but without force to make enter, and another point that's I can't make it like this on keyup event because always when the page is loading the text is loaded previosly, then I can't use the keyup event.
Thanks in advanced
Well. I don't knnow why you
Well. I don't knnow why you want to do so. But your design is bad. You hav to rethink your approach to problem. Anyway You can write a parser that navigates through text and tries to compare text width and container width. But there is no easy solution. I don't know anything about event like onLineBreak.