[wp-hackers] newlines from rich text editor do not convert to paragraphs

Davit Barbakadze jayarjo at gmail.com
Mon Dec 14 07:51:43 UTC 2009


I agree to some extent. But usually it is much easier to automate such
task. For example it is much simpler to add a filter to functions.php,
which will do that substitution for you. Some people endure additional
obligations, some don't. If they are ok with manual manipulations,
then it's an option, but what if they aren't?

I will digg for appropriate filter and let you know if I succeed.

On Sun, Dec 13, 2009 at 7:51 PM, mccormicky <mccormicky at gmail.com> wrote:
> I think I was going on about the html *mode* of the wp editor, not *html*itself.
>
> It's not a firefox only issue. I see this in safari and internet explorer.
>
> Simple fix: use the html *mode of the editor* to insert line breaks by *hitting
> the return key*.
> Then switch back to visual format  to do your rich text stuff * *then switch
> back to html mode* *and save.
> if you save your changes in visual mode you run the risk of losing some
> formatting.In this case, line breaks.
> People usually love having options.
> why  only  use 1 mode of the wp editor when there are 2?
>
>
>
>
> On Sun, Dec 13, 2009 at 7:04 AM, Dion Hulse (dd32) <wordpress at dd32.id.au>wrote:
>
>> Yes, But testing with a different browser will tell you if its WordPress at
>> fault, or a Browser/TinyMCE fault. Testing with the Same browser on a
>> different PC will tell you if its a TinyMCE or Browser fault.
>>
>>
>> On Sun, 13 Dec 2009 22:38:52 +1100, Davit Barbakadze <jayarjo at gmail.com>
>> wrote:
>>
>>  I've meany first example:
>>>
>>>  Test<Enter>Test<Enter>Test:
>>>> Result: <p>Test</p><p>Test</p><p>Test</p>
>>>>
>>>
>>> And what we get in the end is:
>>>
>>> TestTestTest
>>>
>>> We use TinyMCE and Firefox 3.5.5 as a browser. Not sure what happens
>>> in other browsers. But it's important for this feature to work in
>>> Firefox.
>>>
>>> On Sun, Dec 13, 2009 at 3:17 PM, Dion Hulse (dd32) <wordpress at dd32.id.au>
>>> wrote:
>>>
>>>> All this talk of HTML mode is confusing things i think..
>>>>
>>>> As it should work:
>>>>
>>>> Test<Enter>Test<Enter>Test:
>>>> Result: <p>Test</p><p>Test</p><p>Test</p>
>>>>
>>>> Test<Shift+Enter>Test
>>>> Result: Test<br/>Test
>>>>
>>>> That works fine for me on a 2.9 nightly, Are you saying that the first
>>>> Example, Results in the 2nd?  Or are you saying it ends up like
>>>> TestTestTest?
>>>> If the latter, That wouldnt surprise me if running in the HTML mode..
>>>>  But
>>>> TinyMCE should handle the paragraphing easily enough.. Have you tried a
>>>> different browser?
>>>>
>>>> On Sun, 13 Dec 2009 22:10:57 +1100, mccormicky <mccormicky at gmail.com>
>>>> wrote:
>>>>
>>>>   learning to press the return key in the html mode of the wp editor or
>>>>> to
>>>>> type <br/> is not exactly learning html.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Sun, Dec 13, 2009 at 4:06 AM, Davit Barbakadze <jayarjo at gmail.com>
>>>>> wrote:
>>>>>
>>>>>  It is understandable, 'cause it should be very handy feature,
>>>>>> especially when one has media and style rich posts. Using html editor
>>>>>> is not an option for some people at all (not familiar with html and do
>>>>>> not bother to learn it - why should they in fact?)
>>>>>>
>>>>>> Does any one know at least what is a hook/filter, which is meant to
>>>>>> accomplish that converting task?
>>>>>>
>>>>>> On Sun, Dec 13, 2009 at 12:47 PM, mccormicky <mccormicky at gmail.com>
>>>>>> wrote:
>>>>>> >  If you hit the return key or insert a <br/> in html mode then switch
>>>>>> > to
>>>>>> > visual (rich text) and save, they get wiped out.
>>>>>> > But if you make line breaks with <br/> in html mode or hit the return
>>>>>> > key
>>>>>> -
>>>>>> > and hit save it gets saved.
>>>>>> > - it might be a browser issue though. Not sure. I always use the html
>>>>>> mode
>>>>>> > so I am not often bothered by it.
>>>>>> > It isn't a new behavior of 2.8.6 -  I have had complaints about the
>>>>>> editor
>>>>>> > from clients for years.
>>>>>> > Loss of formatting goes goes hand in hand with rich text editing & I
>>>>>> > tell
>>>>>> > them to use the html mode but they don't often listen..
>>>>>> >
>>>>>> >
>>>>>> > On Sun, Dec 13, 2009 at 3:27 AM, Davit Barbakadze <jayarjo at gmail.com
>>>>>> >
>>>>>> wrote:
>>>>>> >
>>>>>> >> I'm running 2.8.6. Plugins I got are:
>>>>>> >>
>>>>>> >> All in One SEO Pack
>>>>>> >> Ozh' Admin Drop Down Menu
>>>>>> >> qTranslate
>>>>>> >>
>>>>>> >> But I've used them before without such problems. At least I haven't
>>>>>> >> noticed them.
>>>>>> >>
>>>>>> >> So it is not a proper behavior? Is it switchable? On/Off somewhere?
>>>>>> >>
>>>>>> >>
>>>>>> >> On Sun, Dec 13, 2009 at 6:14 AM, Chris Jean <gaarai at gaarai.com>
>>>>>> wrote:
>>>>>> >> > Which version are you running? Do you have any plugins installed
>>>>>> and
>>>>>> >> > activated?
>>>>>> >> >
>>>>>> >> > Chris Jean
>>>>>> >> > http://gaarai.com/
>>>>>> >> > @chrisjean
>>>>>> >> >
>>>>>> >> >
>>>>>> >> > On 12/12/2009 12:39 PM, Davit Barbakadze wrote:
>>>>>> >> >>
>>>>>> >> >> For some reason freshly installed blog doesn't convert newlines
>>>>>> >> >> entered in posts rich text editor into paragraphs, as it usually
>>>>>> does.
>>>>>> >> >> It just outputs text on one long line, without any breaks. Text
>>>>>> >> >> formatting works only if forcefully styled or aligned. Is it how
>>>>>> it
>>>>>> >> >> should be? Never noticed such behavior in WordPress.
>>>>>> >> >>
>>>>>> >> >>
>>>>>> >> >
>>>>>> >> > _______________________________________________
>>>>>> >> > wp-hackers mailing list
>>>>>> >> > wp-hackers at lists.automattic.com
>>>>>> >> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>>>> >> >
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >> --
>>>>>> >> Davit Barbakadze
>>>>>> >> _______________________________________________
>>>>>> >> wp-hackers mailing list
>>>>>> >> wp-hackers at lists.automattic.com
>>>>>> >> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>>>> >>
>>>>>> > _______________________________________________
>>>>>> > wp-hackers mailing list
>>>>>> > wp-hackers at lists.automattic.com
>>>>>> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Davit Barbakadze
>>>>>> _______________________________________________
>>>>>> wp-hackers mailing list
>>>>>> wp-hackers at lists.automattic.com
>>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>>>>
>>>>>>  _______________________________________________
>>>>> wp-hackers mailing list
>>>>> wp-hackers at lists.automattic.com
>>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>>>
>>>>>
>>>>
>>>> --
>>>> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>>>> _______________________________________________
>>>> wp-hackers mailing list
>>>> wp-hackers at lists.automattic.com
>>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>>
>>>>
>>>
>>>
>>>
>>
>> --
>> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Davit Barbakadze


More information about the wp-hackers mailing list