Create an article or custom module with some text containing two spans, one without a class and another with, e.g:
<div>This is some text. <span>This part has a span tag</span> and this doesn't.</div>
<div>This is some additional text. <span class="span">This part also has a span tag</span> and this doesn't.</div>
Save
Tinymce will revert back to the main editor
Toggle back to the code view
<div>This is some text. <span>This part has a span tag</span> and this doesn't.</div>
<div>This is some additional text. <span class="span">This part also has a span tag</span> and this doesn't.</div>
<div>This is some text. This part has a span tag and this doesn't.</div>
<div>This is some additional text. <span class="span">This part also has a span tag</span> and this doesn't.</div>
J4.1.0 but I first noticed it yesterday with J.4.0.6
This does not happen with JCE Editor
Labels |
Added:
No Code Attached Yet
|
Tinymce is stripping the empty span as it does not consider them to be valid markup.
You have two options
Thank you. You're right, of course. Although I can't see why 'span' isn't allowed by default.
Thats something to take up with tinyMCE ;)
If this is now resolved please close the issue.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-02-19 09:39:42 |
Closed_By | ⇒ | Fedik |
Closing because it is TinyMCE behavior.
Tinymce is stripping the empty span as it does not consider them to be valid markup.
You have two options
In the tinymce plugin change the "use joomla text filter" to on
in the tinymce plugin add span to the list of extended valid elements