[TYPO3-RTE] p after (un)ordered list gives problems

Uschi Renziehausen typo3news at otherone.de
Tue Nov 4 12:46:04 CET 2008


Hi Walrick,

Walrick Bosch wrote:
> Hello Uschi
> 
>> The whole problem does not occur if we use the button 'Insert a
>> paragraph after the current block' when inside ol/ul.
> 
> I don't know that button? What does it look like, or what is the
> TSconfig id-string of the button?
>

The id-strings are insertparagraphbefore, insertparagraphafter.


>> Conclusion: If we are in an empty last child of ol/ul li pressing
>> ol or ul should behave like insert paragraph after, means the new
>> line should be wrapped by p immediately?
> 
> Correct. Would be nice if this could be solved in the next update
> (and/or a patch).

I made an entry in the bugtracker: http://bugs.typo3.org/view.php?id=9730

Uschi

> 
> Regards,
> 
> Walrick
> 
> Uschi Renziehausen wrote:
>> Walrick Bosch wrote:
>>> Hello Uschi,
>>>
>>> I'm using 4.2.2.
>>>
>>> And indeed, if I use your method it works ok. But what I did is press
>>> enter, then click on the ol button to get out of the list, type some
>>> text and then press enter again. And that produces the problem. Even
>>> without the text. So just enter, ol/ul button, enter is enough to cause
>>> the problem. Not editor-proof in my opinion.
>>>
>> Trying to track it down:
>> Doing it your way switching to code view I have the folling html:
>> <p>A normal paragraph</p>
>>   <ol>
>>     <li>ol item 1</li>
>>     <li>ol item 2</li>
>> </ol>
>> Another paragraph after clicking ol-button when inside item 3.
>>
>> As we can see, the last paragraph is not a p-element. If you now click
>> save, it will be one, so you will get the code we want.
>> But if you want to get on typing and press enter again now, this is what
>> we get:
>>
>> <p>
>>    <p>A normal paragraph</p>
>>    <ol>
>>      <li>ol item 1</li>
>>      <li>ol item 2</li>
>>     </ol>
>>     Another paragraph by clicking ol-button when inside item 3.
>> </p>
>> <p>And now another paragraph after clicking enter.</p>
>>
>> As we can see, after having clicked enter after we have clicked ol the p
>> does not wrap the text it was intended for.
>> Now if we save that one we get two empty paragraphs in rte code view we
>> most certainly do not want:
>>
>> <p>&nbsp;</p>
>> <p>A normal paragraph</p>
>> <ol><li>ol item 1</li><li>ol item 2</li></ol>
>> <p>Another paragraph by clicking ol-button when inside item 3.</p>
>> <p>&nbsp;</p>
>> <p>And now another paragraph after clicking enter.</p>
>>
>> The whole problem does not occur if we use the button 'Insert a
>> paragraph after the current block' when inside ol/ul.
>>
>> Conclusion: If we are in an empty last child of ol/ul li pressing ol or
>> ul should behave like insert paragraph after, means the new line should
>>  be wrapped by p immediately?
>>
>> Prosit, Uschi
>>
> 
> 


More information about the TYPO3-project-rte mailing list