Re: image insert with https

  •  04-27-2009, 12:19 PM

    Re: image insert with https

    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>
View Complete Thread