The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Tags that automatically close prematurely in the HTML editor

5 posters

Go down

Solved Tags that automatically close prematurely in the HTML editor

Post by Soulmonster February 3rd 2015, 10:11 am

Technical Details


Forum version : phpBB3
Position : Founder
Concerned browser(s) : Mozilla Firefox
Who the problem concerns : All members
Forum link : http://www.saltvannsprat.com/

Description of problem

When attenpting to modify a HTML in the HTML pages management I have a problem with a <nav> tag that closes prematurely. I want the <nav> tag to enclose the entire HTML page, but the HTML editor won't let me. It immediately closes the tag. This is what I want to get:

Code:
<nav id="menu-wrap"> MY HTML CODE </nav>

But instead, this is what I get after saving the HTML file:

Code:
<nav id="menu-wrap"></nav> MY HTML CODE <nav id="menu-wrap"></nav>

The end result is of course that my HTML code is not enclosed by the <nav> tag.

Thanks for your help!


Last edited by Soulmonster on February 3rd 2015, 9:43 pm; edited 1 time in total
avatar
Soulmonster
Forumember

Posts : 228
Reputation : 2
Language : Norwegian

Back to top Go down

Solved Re: Tags that automatically close prematurely in the HTML editor

Post by _Twisted_Mods_ February 3rd 2015, 11:12 am

im having the same issue with html in a widget

my forum is in my profile
version phpbb3

i post this

Code:
    <div id="afflcode">
<dl class="codebox"><dt>CODE:</dt>
<dd><code>
&lt;a href="http://liquidcode.forumotion.com/" target="_blank" title="Liquid Code"&gt;
&lt;img src="https://www.filepicker.io/api/file/qxGvXHLTTSmIm18mDoZk+lqaff.gif" alt="Liquid Code" /&gt;
&lt;/a&gt;</code></dd></dl></div>

   <div id="tm_affsystem"><center></center></div>

then after i save and page reloads it like this

Code:
<div id="afflcode"><dl class="codebox"><dt></dt>CODE:<dd></dd></dl><code style="">
<a href="http://liquidcode.forumotion.com/" target="_blank" title="Liquid Code">
<img src="https://www.filepicker.io/api/file/qxGvXHLTTSmIm18mDoZk+lqaff.gif" alt="Liquid Code" />
</a></code><dl class="codebox"><dd></dd></dl>
</div>

as you can see the word CODE: is removed from the dt element and my charicter code have been turned to sybols and exstra
Code:
<dl class="codebox">

was added to the end
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Tags that automatically close prematurely in the HTML editor

Post by Shadow February 3rd 2015, 12:22 pm

Hello

Our editor doesn't recognize the tag <nav>. By consequence, it closed the tag randomly and destructures the whole layout Sad
I don't have solution! You should not use <nav> tag!

Maybe @Ange tuteur has a better explanation than mine...

Thanks for your understanding!
Shadow
Shadow
Manager
Manager

Male Posts : 16208
Reputation : 1832
Language : French, English

Back to top Go down

Solved Re: Tags that automatically close prematurely in the HTML editor

Post by Ange Tuteur February 3rd 2015, 12:33 pm

Hi !

I cannot seem to recreate the problem.
http://forumbeta.forumactif.com/h2-test-de-nav
Code:
<nav id="menu-wrap">
  <a href="/">Accuiel</a> &bull;
  <a href="/memberlist">Membres</a> &bull;
  <a href="/groups">Groupes</a> &bull;
  <a href="/search">Rechercher</a>
</nav>

Are you using advanced mode or simple ? I wasn't able to recreate it in either mode, but if you're making HTML pages, I HIGHLY suggest using advanced mode. The SCEditor can cause tag corrections which are less than helpful.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Tags that automatically close prematurely in the HTML editor

Post by Soulmonster February 3rd 2015, 8:38 pm

Ange Tuteur wrote:Hi !

I cannot seem to recreate the problem.
http://forumbeta.forumactif.com/h2-test-de-nav
Code:
<nav id="menu-wrap">
  <a href="/">Accuiel</a> &bull;
  <a href="/memberlist">Membres</a> &bull;
  <a href="/groups">Groupes</a> &bull;
  <a href="/search">Rechercher</a>
</nav>

Are you using advanced mode or simple ? I wasn't able to recreate it in either mode, but if you're making HTML pages, I HIGHLY suggest using advanced mode. The SCEditor can cause tag corrections which are less than helpful.

Do you mean "simple" or "WYSIWYG" mode? I use "simple". In WYSIWYG mode I can't see the tags.
avatar
Soulmonster
Forumember

Posts : 228
Reputation : 2
Language : Norwegian

Back to top Go down

Solved Re: Tags that automatically close prematurely in the HTML editor

Post by _Twisted_Mods_ February 3rd 2015, 9:24 pm

he means when editing the html page did you use the Tags that automatically close prematurely in the HTML editor Editer or the Tags that automatically close prematurely in the HTML editor Editer-html  ... you should use the Tags that automatically close prematurely in the HTML editor Editer-html advanced mode
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Tags that automatically close prematurely in the HTML editor

Post by Soulmonster February 3rd 2015, 9:42 pm

Thanks guys for the quick and helpful solutions. In advanced mode the problem disappeared. This thread can be closed now.
avatar
Soulmonster
Forumember

Posts : 228
Reputation : 2
Language : Norwegian

Back to top Go down

Solved Re: Tags that automatically close prematurely in the HTML editor

Post by Ape February 4th 2015, 1:05 am

Topic solved and archived


Tags that automatically close prematurely in the HTML editor Left1212Tags that automatically close prematurely in the HTML editor Center11Tags that automatically close prematurely in the HTML editor Right112
Tags that automatically close prematurely in the HTML editor Ape_b110
Tags that automatically close prematurely in the HTML editor Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19449
Reputation : 2011
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum