Permalink
Browse files

MDL-33712 add support for unique moodle tags in tinymce

  • Loading branch information...
1 parent 4fdabcc commit ae5b8854e5c3394977744be07ce15076af4c01f5 @skodak skodak committed with danpoltawski Jun 15, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/editor/tinymce/lib.php
@@ -170,6 +170,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 ae5b885

Please sign in to comment.