
By Motren 37 on
I don't quite know where to start with asking. it's been a while since I was going to upgrade from Drupal 9 to Drupal 10 and CKEditor 5. got druapl updated and everything like that, but then the problem comes that one of the new functions adds <p></p> to the html code which I didn't have in drupal 9 and CKEditor 4. everything from sending has become strange. <p></p> is inserted between <dd> and <dt> in <dl> layouts I have made. have also got some extra <div>. I use Asset Injector css with my own html. for now I've put the whole website on hold until I figure out what to do about the <p></p> challenge. Haven't been able to find a solution yet.
Comments
=-=
please edit your post and move it to the 'post installation' forum. Thank you.
Your description is a bit
Your description is a bit vague, but it sounds like you're using a text format that converts newlines into paragraph tags. Look on admin/config/content/formats
Available for paid support, module development, migrations, consulting...
I put in the two senders that I'm struggling to get <p></p>.
this came when I updated the page from D9 to D10. and CKEditor 4 to CKEditor 5. don't know what does this automatically on complete html. this was not a problem until i upgraded. it gets changed when I look at codes and go back to emit and back to coder and it ends up with <p></p>.
code from nye uppdate D10
<div class="aktiv_kjoretoy">
<div class="kjoretoybilde">
xx
</div>
<div class="kjoretoy_info">
<dl>
<div class="info_kjoretoy_v1">
<dt>
<p>
Kallesignal / Bilummer
</p>
</dt>
<dd>
<p>
-
</p>
</dd>
</div>
<div class="info_kjoretoy_v1">
<dt>
<p>
Typebil
</p>
</dt>
<dd>
<p>
Mannskapsbil
</p>
</dd>
</div>
<div class="info_kjoretoy_v1">
<dt>
<p>
Reg Nr
</p>
</dt>
<dd>
<p>
BL 3594
</p>
</dd>
</div>
<div class="info_kjoretoy_v1">
<dt>
<p>
Fabrikkmerke
</p>
</dt>
<dd>
<p>
International
</p>
</dd>
</div>
<div class="info_kjoretoy_v1">
<dt>
<p>
Modell
</p>
</dt>
<dd>
<p>
500
</p>
</dd>
</div>
<div class="info_kjoretoy_v1">
<dt>
<p>
Påbygg
</p>
</dt>
<dd>
<p>
-
</p>
</dd>
</div>
<div class="info_kjoretoy_v1">
<dt>
<p>
Betegnelse
</p>
</dt>
<dd>
<p>
-
</p>
</dd>
</div>
<div class="info_kjoretoy_v1">
<dt>
<p>
Års modell
</p>
</dt>
</div>
<div class="info_kjoretoy_v1">
<dt>
<p>
Ombygget År
</p>
</dt>
<dd>
<p>
-
</p>
</dd>
</div>
<div class="info_kjoretoy_v1">
<dt>
<p>
Historikk
</p>
</dt>
<dd>
<p>
Kommer fra Årdal brannvesen 1990 og var i tjeneste til 1997
</p>
</dd>
</div>
<div class="info_kjoretoy_v1">
<dt>
<p>
Vanntank
</p>
</dt>
</div>
<div class="info_kjoretoy_v1">
<dt>
<p>
Skumtank
</p>
</dt>
</div>
<div class="info_kjoretoy_v1">
<dt>
<p>
Status
</p>
</dt>
<dd>
<p>
-
</p>
</dd>
</div>
<div class="info_kjoretoy_v1">
<dt>
<p>
Rettigheter Bilde
</p>
</dt>
<dd>
<p>
-
</p>
</dd>
</div>
</dl>
</div>
</div>
here as it should have looked
<div class="kjoretoybilde">xx</div>
<div class="kjoretoy_info">
<dl>
<div class="info_kjoretoy_v1"><dt>Kallesignal / Bilummer</dt><dd>-</dd></div>
<div class="info_kjoretoy_v1"><dt>Typebil</dt><dd>Mannskapsbil</dd></div>
<div class="info_kjoretoy_v1"><dt>Reg Nr</dt><dd>-</dd></div>
<div class="info_kjoretoy_v1"><dt>Fabrikkmerke</dt><dd>-</dd></div>
<div class="info_kjoretoy_v1"><dt>Modell</dt><dd>-</dd></div>
<div class="info_kjoretoy_v1"><dt>Påbygg</dt><dd>-</dd></div>
<div class="info_kjoretoy_v1"><dt>Betegnelse</dt><dd>-</dd></div>
<div class="info_kjoretoy_v1"><dt>Års modell</dt><dd></dd></div>
<div class="info_kjoretoy_v1"><dt>Ombygget År</dt><dd>-</dd></div>
<div class="info_kjoretoy_v1"><dt>Historikk</dt><dd>-</dd></div>
<div class="info_kjoretoy_v1"><dt>Vanntank</dt><dd>-</dd></div>
<div class="info_kjoretoy_v1"><dt>Skumtank</dt><dd>-</dd></dl></div>
<div class="info_kjoretoy_v1"><dt>Status</dt><dd>-</dd></div>
<div class="info_kjoretoy_v1"><dt>Rettigheter Bilde</dt><dd>-</dd>
</dl>
</div>
</div>
Post a screenshot of the full
Post a screenshot of the full text area you're putting your HTML into. Include what it says *below* the text area.
Below the text area there's an 'About text formats' link. If you click that you'll probably find something saying 'Lines and paragraphs are automatically recognized. The <br /> line break, <p> paragraph and </p> close paragraph tags are inserted automatically.' That's probably the problem, so switch to a different text format.
Available for paid support, module development, migrations, consulting...
This is the node i work on.
it all comes down to D10 or ckeditor 5 automatically putting in <br> and <p>. and this fertilizers emit on the sides. haven't had that challenge on D9 or ckeditor 4. haven't found a solution to this and so I've stopped building the website a bit. Also adds link
Home site page
link to the photo
quite frustrating not to find a solution for the auto <p> tag on
from what I see that no matter what page and format I'm working with that is linked to a css, it is placed on <p></p> and <dl><</dl> a page I'm working on correcting I had over 10 layouts that had to be changed back. I hope to find a solution to continue working with the website that I had a good basis for completing. but I have to use the time to find out if it is possible to solve these auto entries that are standard now.
Any progress with this issue
Any progress with this issue @motren-37?
I just faced that very same problem after D10 and CK5 upgrade. Im looking to it.
Anyone found a workaround
I'm in the same boat, got into this issue after updating to D10 and CK5