Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: Add image in e-mail Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jpros
Newbie
Newbie


Joined: 23 July 2009
Online Status: Offline
Posts: 2
Posted: 23 July 2009 at 12:35pm | IP Logged Quote jpros

Hello all,
I implement on AfterLogic WebMail Pro add image in e-mail.

class.html-editor.js:
Line 29:
function CreateImageHandler(url) {     HtmlEditorField.CreateImageFr omWindow(url);
}
Line 479:
CreateImage: function () {
           if (this._designMode) {
                var bounds = GetBounds(this._btnInsertImage);
                var top = bounds.Top + bounds.Height;
                window.open('imagecreator.html ', 'ha_fullscreen',
                      'toolbar=no,menubar=no,personalbar=no,width=380,height=100,l eft=' + bounds.Left + ',top=' + top +
                      'scrollbars=no,resizable=no,modal=yes,status=no');
           }
     },
CreateImageFromWindow: function (url) {
           this._execCom('InsertImage', url);
     },    &nbs p;

Line 728:
this._btnInsertImage = this._addToolBarItem(td, 'InsertImage.gif', Lang.InsertImage, 'InsertImage');
           this._btnInsertImage.onclick = function () { obj.CreateImage(); };


imagecreator.html:
<html>
<head>
     <title>Imagem</title& gt;
     <script type="text/javascript">
           function SetProtocol(value) {
                 if (urlObj)
                      urlObj.value = value;
           }
          
           function CreateLink() {
                 if (urlObj) {
                      window.opener.CreateImageHandler(urlObj.value);
                 }
                window.close();
           }

           function Close() {
                window.close();
           }
     </script>
</head>
<body>
     <table><tr><td& gt;
           <fieldset>
                <legend>Informaç& atilde;o da Imagem</legend>
     <table><tr><td& gt;
                      <u>U</u>RL:
                </td><td>
                      <input class="text_input" type="text" value="http://" id="texturl">
                </td></tr></tab le>
           </fieldset>
     </td><td class="buttons_td">
           <input class="button" type="button" value="OK" onClick="CreateLink();">
           <br/>
           <input class="button" type="button" value="Cancel" onClick="Close();">
     </td></tr></tab le>
     <script type="text/javascript">
           var urlObj = document.getElementById('texturl');
     </script>
</body>
</html>

Add an gif image with the name InsertImage.gif in images/html_editor/

And Be Happy :D

Thanks for your attention.

Joćo Paulo

Back to Top View jpros's Profile Search for other posts by jpros
 
jpros
Newbie
Newbie


Joined: 23 July 2009
Online Status: Offline
Posts: 2
Posted: 17 August 2009 at 12:59pm | IP Logged Quote jpros

up /\

if you use-it, please comment.
Back to Top View jpros's Profile Search for other posts by jpros
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide