Results 1 to 9 of 9

Thread: FCKEditor

  1. #1
    sscheper is offline Senior Member
    Join Date
    Jul 2008
    Posts
    24

    Cool FCKEditor

    All:

    I read this section in Sugar Wiki under creating web-to-lead forms:

    When you generate a Web-to-Lead form, it is saved to the cache/generated_forms folder, from where you can copy it to other locations. You can view and edit generated forms in the FCKEditor. To add new fields to the form, the administrator must first create new fields for the Leads module in Studio so that users can select them when they create the form.

    What is the FCKEditor? And how do I find it?

    Thanks in advance for your help!

    P.s. I also posted on general discussion. I figure this location is much more appropriate.

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: FCKEditor

    FCKEditer is a web based WYSIWYG text editor. You don't really 'find' the FCKEditor. Plus, in 5.0 FCKEdit was replaced with TinyMCE. What that paragraph is saying, or trying to say, is that when you create a web-to-lead form it will show it to you in the FCKEditer (now TinyMCE) for you to edit. It is the last step of the Web-To-Lead creator wizard.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    maya is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    12

    Default Re: FCKEditor

    Hi Kbrill...
    I m using Sugar 5.0.0b. I want to use tinyMCE in my new module, how i use that so that formatting toolbar is displayed top of the textarea........please tell me solution for that.

  4. #4
    jarich is offline Junior Member
    Join Date
    Feb 2008
    Posts
    4

    Default insert editor

    I'm looking for that too. I want to insert an editor in my new joboffer module. In this module I want to administrate our job offers, put them into html code and from the crm publish them on the website. For as far as I know there's not something like this existing already. I'm using CE 5.0 g, not yet opgraded to 5.1

    Thanx in advance, Jarich

  5. #5
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: FCKEditor

    Hi all

    The trick to do that:

    modules/<ModuleName>/controller.php
    PHP Code:
    require_once('include/MVC/Controller/SugarController.php');

    class 
    BP_1_ProdutosController extends SugarController {

         function 
    BP_1_ProdutosController(){
             
    parent::SugarController();
         }
        
        function 
    action_detailview(){
            global 
    $locale;

            
    $this->view 'detail';

            
    $GLOBALS['view'] = $this->view;

            
    $this->bean->caracteristicas_tecnicas $locale->translateCharset(html_entity_decode($this->bean->caracteristicas_tecnicas), 'ISO-8859-1');
        }        
        

    field in modules/<ModuleName>/vardefs.php:
    PHP Code:
            'caracteristicas_tecnicas' => array(
                
    'required' => '0',
                
    'name' => 'caracteristicas_tecnicas',
                
    'vname' => 'LBL_CARACTERISTICAS_TECNICAS',
                
    'type' => 'text',
                
    'massupdate' => 0,
                
    'comments' => '',
                
    'help' => '',
                
    'duplicate_merge' => 'disabled',
                
    'duplicate_merge_dom_value' => 0,
                
    'audited' => 0,
                
    'reportable' => 0,
                
    'studio' => 'visible',
            ), 
    modules/<ModuleName>/views/view.edit.php
    PHP Code:
    require_once('include/MVC/View/views/view.edit.php');

    class 
    BP_1_ProdutosViewEdit extends ViewEdit{
        
        function 
    BP_1_ProdutosViewEdit() {
            require_once(
    'include/SugarTinyMCE.php');
            
    $tiny = new SugarTinyMCE();
            
    $tiny $tiny->getInstance("caracteristicas_tecnicas");
            echo 
    $tiny;
            
             
    parent::SugarView();
        }
        
         function 
    display(){
            
    $this->ev->process();    
            echo 
    $this->ev->display();
         }
        

    modules/<ModuleName>/views/view.detail.php
    PHP Code:
    require_once('include/MVC/View/views/view.detail.php');

    class 
    BP_1_ProdutosViewDetail extends ViewDetail{
        
        function 
    BP_1_ProdutosViewDetail() {
             
    parent::SugarView();
        }
        
         function 
    display(){
            
    parent::display();
         }
        

    The field is the "caracteristicas_tecnicas". You just need to rename it accordingly to your field name.
    It works like a charm in several customers systems.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  6. #6
    tyagiakhil is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    52

    Default Re: FCKEditor

    Hi

    I followed instructions exactly and getting this error

    Call to a member function setup() on a non-object in \sugar_root\Sugar52a\include\MVC\Controller\Contro llerFactory.php

    Environment : Sugar5.2aCE, Windows, XAMPP.

    Thanks

  7. #7
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: FCKEditor

    Can you provide the content of the controller.php you had created?

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  8. #8
    tyagiakhil is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    52

    Default Re: FCKEditor

    Hi

    Here it is :


    <?php

    require_once('include/MVC/Controller/SugarController.php');

    class aCaseController extends SugarController {

    function aCaseController(){
    parent::SugarController();
    }

    function action_detailview(){
    global $locale;

    $this->view = 'detail';

    $GLOBALS['view'] = $this->view;

    $this->bean->caracteristicas_tecnicas = $locale->translateCharset(html_entity_decode($this->bean->caracteristicas_tecnicas), 'ISO-8859-1');
    }

    }
    ?>

    I also tried Case instead of aCase. Other code is exact same.
    Error disappeared when I use "Cases" but that field is a normal text area.

    Thanks
    Last edited by tyagiakhil; 2009-03-19 at 01:23 PM.

  9. #9
    tyagiakhil is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    52

    Default Re: FCKEditor

    Hi

    Found help in this thread http://www.sugarcrm.com/forums/showthread.php?p=155953

    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FCKEditor
    By sscheper in forum General Discussion
    Replies: 1
    Last Post: 2008-08-08, 04:41 PM
  2. upgrade fckeditor
    By agcilantro in forum Help
    Replies: 0
    Last Post: 2008-07-07, 03:53 PM
  3. FCKeditor upgrade causes MBCS error
    By matthewboh in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-08-09, 04:22 PM
  4. FCKEditor Bar not showing in Opera
    By casperl in forum Help
    Replies: 2
    Last Post: 2007-07-25, 10:01 AM
  5. Need a better html editor why not FCKeditor?
    By kpit in forum General Discussion
    Replies: 5
    Last Post: 2006-02-21, 05:51 PM

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
  •