TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: @rjen on February 26, 2023, 05:51:56 PM

Title: Strange behaviour html block editor
Post by: @rjen on February 26, 2023, 05:51:56 PM
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>"
Title: Re: Strange behaviour html block editor
Post by: lurkalot on February 26, 2023, 06:26:45 PM
Interesting.  When I tested it the closing textarea tag would just disappear even if added on its own.
Title: Re: Strange behaviour html block editor
Post by: @rjen on February 26, 2023, 09:16:57 PM
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.
Title: Re: Strange behaviour html block editor
Post by: lurkalot on February 26, 2023, 10:25:02 PM
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
Title: Re: Strange behaviour html block editor
Post by: 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,
Title: Re: Strange behaviour html block editor
Post by: tino on February 26, 2023, 10:48:02 PM
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.