http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692009-11-30T20:12:04ZTYPO3 ForgeTYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=548112009-11-30T20:12:04ZSteffen Kamperinfo@sk-typo3.de
<ul></ul><p>this is not the case. Insert hr with button in rte works as expected (4.3, rte setup demo)</p> TYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=548122010-06-09T08:12:45ZStanislas Rolland
<ul></ul><p>This is not the case in current trunk, nor in TYPO3 4.3.</p>
<p>If you set<br />RTE.default.allowTagsOutside = hr, address<br />(as set in the default proc configuration provided by htmlArea RTE),<br />the hr element is not wrapped in any p element by the RTE transformation.</p>
<p>If you use CSS Styled Content, the hr element is correctly rendered in the frontend and is not wrapped in any p.</p> TYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=548132010-06-15T20:47:05ZBernhard Kraftkraftb@think-open.at
<ul></ul><p>This is not true for my installation. I have a 4.4 (trunk) running. In the RTE it is correctly rendered (if I switch to source view):</p>
<p>< p>Hier steht ein Text. Bla bla bla.< /p><br /><hr />< p>Lorem ipsum< /p></p>
<p>The database content is:</p>
<p>Hier steht ein Text. Bla bla bla.<br />< hr>< p>Lorem ipsum< /p></p>
<p>And the FE is even more weird:</p>
<p>< p class="bodytext">Hier steht ein Text. Bla bla bla.< /p>< p class="bodytext">< hr>< p>Lorem ipsum< /p>< /p></p> TYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=548142010-06-15T21:04:14ZBernhard Kraftkraftb@think-open.at
<ul></ul><p>NOTE: I added a space after each tag, else Mantis prints the < p> tags, and does not escape the <</p> TYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=548152010-06-15T21:05:10ZBernhard Kraftkraftb@think-open.at
<ul></ul><p>The interesting thing is. When I remove every occurence of a < p> tag in the RTE source, and then save the element the content becomes:</p>
<p>< p>Hier steht ein Text. Bla bla bla. < /p><br /><hr />Lorem ipsum</p> TYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=548162010-06-15T21:06:38ZBernhard Kraftkraftb@think-open.at
<ul></ul><p>The RTE (or any of the transformations) seems to accept the <hr /> tag for a line and does not wrap the content after it in < p> tags. I think it would be the best solution to automatically add a linebreak after an <hr /> tag.</p> TYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=548172010-06-18T02:22:59ZStanislas Rolland
<ul></ul><p>The patch does not work for me. I get this in the database:</p>
<p>Hier steht ein Text. Bla bla bla.CRLF< hr>< p> orem ipsum< /p>< p>< /p></p> TYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=548182010-06-18T03:36:49ZStanislas Rolland
<ul></ul><p>Sorry, I think I messed something up. I re-did a cleaner test, this time with trunk.</p>
<p>There is still a problem. If I have in the RTE:</p>
<p>Hier steht ein Text. Bla bla bla.<hr />Lorem ipsum</p>
<p>without any paragraph.</p>
<p>On the way to the RTE, the text parts should be wrapped in p tags, but are not.</p>
<p>In fact, I think that, on the way to the database, a linebreak should, in such case, be inserted before and after the hr element.</p> TYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=548192010-06-18T10:32:36ZBernhard Kraftkraftb@think-open.at
<ul></ul><p>Did you try it with tinyMCE. In the bugnote message I noted that this patch does only work for tinyMCE.</p>
<p>The reason for this is simply my customer who pointed me to this bug is using tinyMCE - and until now I did not have time to fix this for htmlarea. I know that you, Rolland are the maintainer of htmlarea so probably you checked it for your extension.</p> TYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=548202010-06-18T17:08:54ZStanislas Rolland
<ul></ul><p>I don't see why it would make any difference in the test case I am reporting.</p> TYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=548212010-06-18T17:14:57ZBernhard Kraftkraftb@think-open.at
<ul></ul><p>I can't remember it right now - but AFAIK rtehtmlarea and tinyMCE are generating different content when storing/reading to/from db. At least that's what I remember right now.</p>
<p>I will have a look at the differences later this day or somewhen tomorrow. This issue isn't very urgent - I installed the fix at the customers site and now just want to get everything as it should be.</p> TYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=548222010-12-06T05:33:24ZStanislas Rolland
<ul></ul><p>Patch is attached to issue 0005896.</p> TYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=548232010-12-25T15:46:24ZStanislas Rolland
<ul></ul><p>Fixed in SVN TYPO3core trunk (revision 9883).</p> TYPO3 Core - Bug #21749: Inserting <hr /> using an RTE leads to validation errorhttp://forge.typo3.org/issues/21749?journal_id=617562011-03-29T14:23:05ZSusanne Moogsusanne.moog@typo3.org
<ul><li><strong>Target version</strong> deleted (<del><i>4.5.0</i></del>)</li></ul>