Commit 7787605d authored by Nigel McNie's avatar Nigel McNie
Browse files

No need to clean up the text of a textbox on form submission - the WYSIWYG...

No need to clean up the text of a textbox on form submission - the WYSIWYG pieform element already does this for us. Fixes #2060.
parent cda25387
......@@ -63,17 +63,6 @@ class PluginBlocktypeTextbox extends SystemBlocktype {
);
}
public static function instance_config_save($values) {
global $USER;
if (!get_account_preference($USER->get('id'), 'wysiwyg')) {
$values['text'] = format_whitespace($values['text']);
}
else {
$values['text'] = clean_text($values['text']);
}
return $values;
}
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment