No Code Attached Yet J4 Issue
avatar niosme
niosme
20 May 2024

Steps to reproduce the issue

<a href="google.com">
	<div>aasdasd</div>
	<span class="test">test</span>
</a>

Expected result

<a href="google.com">
	<div>aasdasd</div>
	<span class="test">test</span>
</a>

Actual result

<div>aasdasd</div>
<p><a href="google.com"><span class="test">test</span> </a></p>

System information (as much as possible)

Joomla 4.4.3

Additional comments

I also installed Dionysopoulos plugin for custom config and passed inside
{
"valid_elements": "[]",
"verify_html": false
}
but nothing works. it keeps destroying the content. In tiny mce editor online this doesnt happen even on basic example https://www.tiny.cloud/docs/tinymce/latest/basic-example/.

avatar niosme niosme - open - 20 May 2024
avatar joomla-cms-bot joomla-cms-bot - change - 20 May 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 May 2024
avatar niosme niosme - change - 20 May 2024
The description was changed
avatar niosme niosme - edited - 20 May 2024
avatar brianteeman
brianteeman - comment - 20 May 2024
  1. This was a bug in tinyMCE 5,x as it was too agressive in sanitizing what it considered to be invalid markup
  2. This was fixed by tinyMCE in 6.x and above
  3. The demo you linked to is tinyMCE 7.x hence it works

Joomla 4.x ships with tinymce 5 only.
Joomla 5.x ships wiith tinymce 6 where the bug you have encountered is not present

avatar Quy Quy - change - 26 May 2024
Labels Added: J4 Issue
avatar Quy Quy - labeled - 26 May 2024
avatar niosme
niosme - comment - 28 May 2024

That's great that its fixed in joomla 5 with tinymce 6 versions and upper.

avatar rdeutz rdeutz - close - 1 Jun 2024
avatar rdeutz rdeutz - change - 1 Jun 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-06-01 13:42:34
Closed_By rdeutz
avatar rdeutz
rdeutz - comment - 1 Jun 2024

We are not goimg to update Tiny to version 6 in Joomla4 so this will be a know "Bug"

avatar niosme
niosme - comment - 3 Jun 2024

i am ok with that :)

Add a Comment

Login with GitHub to post a comment