Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-33712 add support for unique moodle tags in tinymce

  • Loading branch information...
commit 229aabf7c6b25ec4f63339a5bf0d0ae9549a0925 1 parent d6571ad
@skodak skodak authored danpoltawski committed
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.