How to Make Text-area Field Formattable Like Html Fields ?

Hello

I want to make Text-area Fields Formattable.

_22120
Parents
  • Hi Bhavin Patel

    1.First create a text area field in  from studio and add it to the record layout
    2..Do a quick repair
    3 Go to the folder <>/custom/modules/<modules>/clients/base/views/record
    4.search for the field in the arrays and
    for example if the field is like
    8 =>
                  array (
                    'name' => 'testtextarea_c',
                    'studio' => 'visible',
                    'label' => 'LBL_TESTTEXTAREA',
                    'span' => 12,
                  ),
                  
                  
    replace it with

     8 =>
                  array (
                    'name' => 'testtextarea_c',
                    'label' => 'LBL_TESTTEXTAREA',
                      'type'          => 'htmleditable_tinymce',   
                      //'dismiss_label' => true,   
                      'span'          => 12,   
                      'tinyConfig'    => array(     
                      'script_url'                        => '<yoururl>/include/javascript/tiny_mce/tiny_mce.js',     
                      'height'                            => '100%',     
                      'width'                             => '100%',     
                      'theme'                             => 'advanced',     
                      'skin'                              => 'sugar7',     
                      'plugins'                           => 'style,paste,inlinepopups',     
                      'entity_encoding'                   => 'raw',     
                      'forced_root_block'                 => false,     
                      'theme_advanced_buttons1'           => "code,separator,bold,italic,underline,strikethrough,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,forecolor,backcolor,separator,fontsizeselect",     
                      'theme_advanced_toolbar_location'   => "top",     
                      'theme_advanced_toolbar_align'      => "left",     
                      'theme_advanced_statusbar_location' => "none",     
                      'theme_advanced_resizing'           => false,     
                      'schema'                            => 'html5',     
                      'template_external_list_url'        => 'lists/template_list.js',     
                      'external_link_list_url'            => 'lists/link_list.js',     
                      'external_image_list_url'           => 'lists/image_list.js',     
                      'media_external_list_url'           => 'lists/media_list.js',     
                      'theme_advanced_path'               => false,     
                      'theme_advanced_source_editor_width'=> 500,     
                      'theme_advanced_source_editor_height'=> 400,     
                      'inlinepopups_skin'                 => 'sugar7modal',
                                      'relative_urls'                     => false,     
                                      'remove_script_host'                => false,   
                                      
                                                                                            ),
                  ),
    5.Do a  proper quick repair and rebuild and then you can find your tinymce editor in the edit and the record view.   

    Hope this helps

    Regards

    Sidhu

  • Bhavin Patel

    We can not format until we change the Text Area field to something like span or div tag or add rich text editors on loading through scripts. There are many free rich-text editors which are available, select any one and include those js files.. do what their suggest to achieve.

    May be this post will help you Adding Rich Text Editing to a Field

    Hope this Helps.

    Good Luck.

    Best Regards

    S Ramana Raju

Reply Children
No Data