General developer forum

Enable trusted content not working in some activities

 
Picture of Steffen Hippeli
Enable trusted content not working in some activities
Plugin developers

Hi, i need custom html attributes in img and a tags to make my plugins for tinymce and atto work. It works well in course content but not in activities. Content provides by users via the wysiwyg editor is purified, so that the custom attributes are eliminated.

I found the option "enable trusted content" which could be a solution to this.

In some cases this works fine, for example in forum or page. But in other cases like assignment, test or database it does not work. Here the user input is purified although trusted content is enabled (of course i set the appropriate capability to the users role). 

Is this a bug?

A much better solution would be to configure the purifier. But i did not found any possibility to do that. Please show me that this is possible smile

 
Average of ratings: -
Picture of Steffen Hippeli
Re: Enable trusted content not working in some activities
Plugin developers

Too late for editing:


Even data attributes will be deleted. Wouldn't it be nice to kep them?

 
Average of ratings: -