MDL-33712 add support for unique moodle tags in tinymce

This commit is contained in:
Petr Skoda 2012-06-15 10:37:12 +02:00 committed by Petr Škoda
parent 2cbdaa77ea
commit 64ed8ca214

View File

@ -178,6 +178,9 @@ class tinymce_texteditor extends texteditor {
$params['valid_elements'] = 'script[src|type],*[*]'; // for some reason the *[*] does not inlcude javascript src attribute MDL-25836
$params['invalid_elements'] = '';
}
// Add unique moodle elements - unfortunately we have to decide if these are SPANs or DIVs.
$params['extended_valid_elements'] = 'nolink,tex,algebra,lang[lang]';
$params['custom_elements'] = 'nolink,~tex,~algebra,lang';
if (empty($options['legacy'])) {
if (isset($options['maxfiles']) and $options['maxfiles'] != 0) {