Results 1 to 3 of 3

Thread: [TinyMCE] custom/include file not parsed in Sugar 6

  1. #1
    markv is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    39

    Default [TinyMCE] custom/include file not parsed in Sugar 6

    I tried to setup TinyMCE in the custom dir like described here:http://www.sugarcrm.com/kb/featured/...se-email-page/, but it does not work in sugar 6.

    I tried a different name for the file (SugarTinyMCE.php instead of tinyButtonConfig.php) but the file is not parsed (output in plain text). Am i doing something wrong or has something changed.

    ____edit
    Wow. What a small thing lin <?php code ?> can do...

    Code:
    <?
    $buttonConfigs = array(
    
    	'default' => array(
    
    				'buttonConfig' => "code,help,separator,bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,
    
    	               					justifyfull,separator,forecolor,backcolor,separator,styleselect,formatselect,fontselect,fontsizeselect,", 
    
    	              'buttonConfig2' => "cut,copy,paste,pastetext,pasteword,selectall,separator,search,replace,separator,bullist,numlist,separator,outdent,
    
    	               					indent,separator,ltr,rtl,separator,undo,redo,separator, link,unlink,anchor,image,separator,sub,sup,separator,charmap,
    
    	               					visualaid", 
    
    	              'buttonConfig3' => "tablecontrols,separator,advhr,hr,removeformat,separator,insertdate,inserttime,separator,preview"),
    
    	  'email_compose' => array(
    
    				'buttonConfig' => "code,help,separator,bold,italic,underline,strikethrough,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,
    
    	               					justifyfull,separator,forecolor,backcolor,separator,styleselect,formatselect,fontselect,fontsizeselect,", 
    
    	              'buttonConfig2' => "", 
    
    	              'buttonConfig3' => ""),
    
    	  'email_compose_light' => array(
    
    				'buttonConfig' => "code,help,separator,bold,italic,underline,strikethrough,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,
    
    	               					justifyfull,separator,forecolor,backcolor,separator,styleselect,formatselect,fontselect,fontsizeselect,", 
    
    	              'buttonConfig2' => "", 
    
    	              'buttonConfig3' => ""),
    
    );
    ?>
    The above remove most of the buttons you don't use much and adds a link button for the email form tinyMCE
    Last edited by markv; 2011-03-17 at 12:37 PM. Reason: coffee

  2. #2
    smbslt42 is offline Sugar Community Member
    Join Date
    Sep 2010
    Posts
    28

    Default Re: [TinyMCE] custom/include file not parsed in Sugar 6

    Your example didn't work for me - what did you end up naming the file and where did you save it?

    Thanks,
    Elizabeth

  3. #3
    markv is offline Sugar Community Member
    Join Date
    Jun 2007
    Posts
    39

    Default Re: [TinyMCE] custom/include file not parsed in Sugar 6

    Quote Originally Posted by smbslt42 View Post
    Your example didn't work for me - what did you end up naming the file and where did you save it?

    Thanks,
    Elizabeth
    It's /custom/include/tinyButtonConfig.php

    Did you set the right file permisions?
    Working at VoIP provider Voys
    Tweeting @markv (nl)
    Loving SugarCRM more with every update.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Include Javascipt-File in ListView, Sugar CE 6.0.3
    By TommyL in forum Developer Help
    Replies: 3
    Last Post: 2010-11-22, 03:27 PM
  2. TinyMCE > How to add Ajax File Manager?
    By skuliaxe in forum Developer Help
    Replies: 1
    Last Post: 2010-07-31, 08:48 PM
  3. include file errors
    By neel1154 in forum Help
    Replies: 6
    Last Post: 2010-05-25, 09:01 AM
  4. change the custom/include/language file can't reflect
    By icson.zhou@gmail.com in forum Help
    Replies: 0
    Last Post: 2010-05-08, 05:26 AM
  5. Replies: 0
    Last Post: 2009-01-28, 06:47 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •