Browse files

MDL-33712 add support for unique moodle tags in tinymce

  • Loading branch information...
1 parent d6571ad commit 229aabf7c6b25ec4f63339a5bf0d0ae9549a0925 @skodak skodak committed with danpoltawski Jun 15, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/editor/tinymce/lib.php
View
3 lib/editor/tinymce/lib.php
@@ -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) {

0 comments on commit 229aabf

Please sign in to comment.