Skip to content

Commit

Permalink
MDL-33712 add support for unique moodle tags in tinymce
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak authored and danpoltawski committed Jul 10, 2012
1 parent d6571ad commit 229aabf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/editor/tinymce/lib.php
Expand Up @@ -178,6 +178,9 @@ protected function get_init_params($elementid, array $options=null) {
$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) {
Expand Down

0 comments on commit 229aabf

Please sign in to comment.