Skip to content
Snippets Groups Projects
Commit 63434f31 authored by Tim Steiner's avatar Tim Steiner
Browse files

tinymce config update to strip out html comments

parent eb2a4da2
No related branches found
No related tags found
No related merge requests found
function myCustomCleanup(type, value) {
switch (type) {
case "get_from_editor":
value = value.replace(/<(!--)([\s\S]*)(--)>/gi, "");
// Do custom cleanup code here
break;
}
return value;
}
tinyMCE.init({
mode : "textareas",
theme : "advanced",
......@@ -16,5 +28,7 @@ tinyMCE.init({
+ "-sub,"
+ "-sup,"
+ "-span[style],"
+ "br"
+ "br",
cleanup_callback : "myCustomCleanup"
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment