javascript - Mail content sent using TinyMCE editor does not display images at receivers end -
i using tinymce editor custom mail sending page in website. need copy , paste contents directly microsoft word editor, includes images well.
and sending contents of editor getting html contents of editor control.
var mailcontent = tinymce.get('maileditor').getcontent();
but after sent mail reciever not able see images have sent.
i using cdn link,
<script type="text/javascript" src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
my code initialize editor given below.
rmsm.initmaileditor = function () { tinymce.init({ content_style: ".mce-content-body{font-family:calibri(body);font-size:11pt;}",// set default content style since tinymce removes empty tags when font style set explicitly. selector: '#maileditor', height: 300, plugins: "link", menubar: false, plugins: "paste", init_instance_callback: function (editor) { //height of html , body increased cursor focusses correctly when clicked anywhere in tinymce editor. $(editor.getdoc()).contents().find('body').closest('html').css('height', '100%'); $(editor.getdoc()).contents().find('body').css('height', '91%'); } }); }
please me on finding out wrong have done.
wiki
Comments
Post a Comment