thanks. this seemed to work.
However, i onyl want the url to change for images inserted. I want to replace src="http with src="https.
I am having issues with the quotations lining up and haveing double quotes inside the second string.
I got as far as this.
<script>
function CuteEditor_FilterHTML(editor, code) {
return code.replace((/\bsrc=\"+http\b/g), 'src=\"https');
}
</script>