TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

October 06, 2024, 08:58:30 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,395
  • Total Topics: 21,244
  • Online today: 162
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 55
  • Total: 55

Strange behaviour html block editor

Started by @rjen, February 26, 2023, 05:51:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

@rjen

Seems there are some strange features in the html editor for blocks:

When the user puts a <textarea> in the body of an html block, the body text is cut just before the closing </textarea>

Reported here:
https://www.simplemachines.org/community/index.php?msg=4146570

and I confirmed it: put below text in a HTML block and save to see the result

<textarea name="affiliates">Some text</text area>
<img src="https://www.tinyportal.net/Themes/alphacentauri203/images/theme/logo_light.png>"
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

Interesting.  When I tested it the closing textarea tag would just disappear even if added on its own.

@rjen

QuoteTextarea is used to input data.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea

What is happening is expected behaviour, if you want it to work differently speak to Mozilla, Google or Apple.
Running Latest TP on SMF2.1 at: www.fjr-club.nl

lurkalot

If you would like to affiliate with us, please use the code below, to add us to your site.
You can reply to the Affiliates Requests thread, to send us your code. Images need to be 88x31px.
DeadMan Knows - Rants, Raves & Reviews

lurkalot

 :hmm:  it's strange that you can post it in SMF between html tags, but the code doesn't save in our html blocks,

tino

Quote from: lurkalot on February 26, 2023, 10:28:55 PM:hmm:  it's strange that you can post it in SMF between html tags, but the code doesn't save in our html blocks,

That's bbcode so would allow it.

If you want to see what's happening look at the console in your web browser. It's not a TinyPortal bug.