diff --git a/document_root/javascript/tinymce.js b/document_root/javascript/tinymce.js
index 9b6ae5cdf408ff1d6533ea20d7365d7f23a2021f..4fbb512b6b3363c581ca5c9d4959f193a5f8bd5b 100644
--- a/document_root/javascript/tinymce.js
+++ b/document_root/javascript/tinymce.js
@@ -1,3 +1,15 @@
+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