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

Recent

Welcome to TinyPortal. Please login or sign up.

December 11, 2024, 03:30:39 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,443
  • Total Topics: 21,252
  • Online today: 101
  • Online ever: 6,457 (November 30, 2024, 02:40:09 PM)
Users Online
  • Users: 0
  • Guests: 71
  • Total: 71

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.