--- imagedrop-tinymce.js 2006-03-14 22:32:44.000000000 +0530 +++ /home/arava/imagedrop/imagedrop-tinymce.js 2006-06-28 08:01:00.000000000 +0530 @@ -5,8 +5,10 @@ function sendToEditor(n) { o = document.getElementById('img'+n); h = o.innerHTML.replace(new RegExp('^\\s*(.*?)\\s*$', ''), '$1'); // Trim - h = h.replace(new RegExp(' (class|title|width|height|id|onclick|onmousedown)=([^\'"][^ ]*)( |/|>)', 'g'), ' $1="$2"$3'); // Enclose attribs in quotes - h = h.replace(new RegExp(' (width|height)=".*?"', 'g'), ''); // Drop size constraints + h = h.replace(new RegExp(' (class|title|id|onclick|onmousedown)=([^\'"][^ ]*)( |/|>)', 'g'), ' $1="$2"$3'); // Enclose attribs in quotes + h = h.replace(new RegExp(' width=\\d*\\b', '\g'),''); // Drop size constraints + h = h.replace(new RegExp(' height=\\d*\\b', '\g'),''); // Drop size constraints + h = h.replace(new RegExp('.thumbnail', '\g'),''); // Drop size constraints h = h.replace(new RegExp(' on(click|mousedown)="[^"]*"', 'g'), ''); // Drop menu events h = h.replace(new RegExp('<(/?)A', 'g'), '<$1a'); // Lowercase tagnames h = h.replace(new RegExp('