Quote from: harryk at Aug 13, 2015, 03:05 PMMe to wants TinyMCErte NOT removing onclick attribute.
... May we conclude there is no way to change this behavior? Somebody from TinyMCE mentioned it is a possible XML injection risk, but let it please be to us to take that risk..
Risk or no risk, TinyMCE allows you to do anything you want with element attributes.
http://www.tinymce.com/wiki.php/Configuration:valid_elements
This works perfectly for me
Open
yourSite/assets/components/tinymcerte/js/mgr/tinymcerte.js
FindExt.extend(TinyMCERTE.Tiny,Ext.Component,{
cfg: {
selector: '#ta'
,document_base_url: MODx.config.base_url
,file_browser_callback_types: 'file image media'
}
alter to thisExt.extend(TinyMCERTE.Tiny,Ext.Component,{
cfg: {
selector: '#ta'
,valid_elements: 'a[*]' //add this line + other elements
,document_base_url: MODx.config.base_url
,file_browser_callback_types: 'file image media'
}
Note
selector: '#ta' targets the content area.
Add this functionality to anywhere you see
selector: ...
Be careful of the commas.
An upgrade to the Extra will wipe these your changes, so back up.