[Vtigercrm-commits] [vtiger-commits] r5035 - in /vtigercrm/trunk/modules: Emails/EditView.php Webmails/EditView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sat Apr 8 06:47:14 EDT 2006


Author: mmbrich
Date: Sat Apr  8 04:47:13 2006
New Revision: 5035

Log:
added FCKeditor support


Modified:
    vtigercrm/trunk/modules/Emails/EditView.php
    vtigercrm/trunk/modules/Webmails/EditView.php

Modified: vtigercrm/trunk/modules/Emails/EditView.php
==============================================================================
Binary files - no diff available.

Modified: vtigercrm/trunk/modules/Webmails/EditView.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/EditView.php (original)
+++ vtigercrm/trunk/modules/Webmails/EditView.php Sat Apr  8 04:47:13 2006
@@ -1,3 +1,4 @@
+<script type="text/javascript" src="include/fckeditor/fckeditor.js"></script>
 <form name="Reply" method="POST" action="index.php">
 <input type="hidden" name="send_mail">
 <?php
@@ -7,7 +8,6 @@
 require_once('modules/Emails/Forms.php');
 require_once('include/utils/utils.php');
 require_once('include/FormValidationUtil.php');
-require_once("include/fckeditor/fckeditor.php");
 if($_REQUEST["mailbox"] && $_REQUEST["mailbox"] != "") {$mailbox=$_REQUEST["mailbox"];} else {$mailbox="INBOX";}
 
 if($_REQUEST["record"] && $_REQUEST["record"] != "") {$mailid=$_REQUEST["record"];} else {$mailid=$_REQUEST["mailid"];}
@@ -167,9 +167,23 @@
 
 $smarty->assign("MOD", $mod_strings);
 $smarty->assign("APP", $app_strings);
+
+?>
+<script type="text/javascript" defer="1">
+window.onload = function () {
+var oFCKeditor = null;
+oFCKeditor = new FCKeditor( "email_body" ) ;
+oFCKeditor.BasePath  = "include/fckeditor/" ;
+oFCKeditor.Height = 550;
+oFCKeditor.Width = "100%";
+oFCKeditor.ReplaceTextarea() ;
+}
+</script>
+<?
+
 if (isset($focus->name)) $smarty->assign("NAME", $focus->name);
 else $smarty->assign("NAME", "");
-
+
 if(isset($_REQUEST['return_module'])) $smarty->assign("RETURN_MODULE", $_REQUEST['return_module']);
 else $smarty->assign("RETURN_MODULE",'Emails');
 if(isset($_REQUEST['return_action'])) $smarty->assign("RETURN_ACTION", $_REQUEST['return_action']);
@@ -185,10 +199,6 @@
 $smarty->assign("ID", $focus->id);
 //$smarty->assign("ENTITY_ID", $_REQUEST["record"]);
 $smarty->assign("ENTITY_TYPE",$_REQUEST["email_directing_module"]);
-
-// FCKeditor
-
-
 $tabid = getTabid("Webmails");
 $category = getParentTab();
 $smarty->assign("CATEGORY",$category);





More information about the vtigercrm-commits mailing list