?
avatar regularlabs
regularlabs
10 Jun 2020

After entering html code in the html view that contains onclick attributes, and then switching to the WYSIWYG view (toggle editor), these attributes are removed.

<button class="btn btn-secondary" onclick="console.log('why does this get removed?')">My Button</button>

Results in:

<button class="btn btn-secondary">My Button</button>

This happens as a Super Admin, even though the global Text Filters is set to 'No Filtering'. That seems to have no effect at all.
image

In the TinyMCE plugin settings the 'Use Joomla Text Filter' option is switched off.
image

avatar regularlabs regularlabs - open - 10 Jun 2020
avatar joomla-cms-bot joomla-cms-bot - change - 10 Jun 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Jun 2020
avatar regularlabs
regularlabs - comment - 10 Jun 2020

PS: Might be connected to: #26185

avatar regularlabs regularlabs - change - 10 Jun 2020
The description was changed
avatar regularlabs regularlabs - edited - 10 Jun 2020
avatar Quy
Quy - comment - 10 Jun 2020

In the TinyMCE plugin under Set 0, enable Use Joomla Text Filter.

avatar regularlabs
regularlabs - comment - 10 Jun 2020

Wow, would never have found that. Very confusing on multiple levels!

avatar regularlabs regularlabs - change - 10 Jun 2020
The description was changed
avatar regularlabs regularlabs - edited - 10 Jun 2020
avatar regularlabs regularlabs - change - 10 Jun 2020
The description was changed
avatar regularlabs regularlabs - edited - 10 Jun 2020
avatar regularlabs regularlabs - change - 10 Jun 2020
The description was changed
avatar regularlabs regularlabs - edited - 10 Jun 2020
avatar regularlabs regularlabs - change - 10 Jun 2020
The description was changed
avatar regularlabs regularlabs - edited - 10 Jun 2020
avatar AndySDH
AndySDH - comment - 10 Jun 2020

Yeah, it's really not clear that those are Tabs in the first place, and then when you realize they're Tabs, you still don't understand where they start or end!

avatar AndySDH
AndySDH - comment - 10 Jun 2020

In the TinyMCE plugin under Set 0, enable Use Joomla Text Filter.

I'm surprised you were able to figure it out 😂

avatar Quy
Quy - comment - 10 Jun 2020

PR #28721 enables this setting by default on new installs.

avatar Quy
Quy - comment - 10 Jun 2020

Existing sets of the TinyMCE panel, and options for each set.
In each set you can add or remove from the available menus and buttons.

They look like tabs to me. Plus, the description above tabs hinted they are tabs. You can also check out the Help documentation.

avatar regularlabs regularlabs - change - 10 Jun 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-06-10 17:02:44
Closed_By regularlabs
avatar regularlabs regularlabs - close - 10 Jun 2020

Add a Comment

Login with GitHub to post a comment