Results 1 to 3 of 3

Thread: Text editor in tinyMCE

  1. #1
    New user
    Join Date
    10-19-16.
    Posts
    10

    Default Text editor in tinyMCE

    Hello,

    I'm new to Contao. I have Contao 3.5 with tinyMCE.
    My problem is that I want to have extended text editor with font color, changing fonts and other. But I have only simple editor - such as basic editor shown here

    What should I do to get full editor?
    Thanks in advance.

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    Although it's not recommended to insert such things into your code - use CSS-classes instead - you can use your own config for the editor. You can find the configuration settings on tinymce.com https://www.tinymce.com/docs/configure/

    Make a copy of system/config/tinyMCE.php and name it system/config/tinyCustom.php

    In your system/config/dcaconfig.php insert this code
    PHP Code:
    <?php

    /** use tinyCustom for all textareas that use tinyMCE */
    if(is_file(TL_ROOT.'/system/config/tinyCustom.php'))
    {
      
    array_walk_recursive($GLOBALS['TL_DCA'], function(&$v$k){
        if(
    $k === 'rte' && $v === 'tinyMCE')
        {
          
    $v 'tinyCustom';
        }
      });
    }
    /** */
    Also there also are extensions to modify TinyMCE https://github.com/cliffparnitzky/TinyMcePluginLoader

    Here is my personal tinyCustom.php http://public.andreasburg.de/tinyCustom.zip
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  3. #3
    New user
    Join Date
    10-19-16.
    Posts
    10

    Default

    Thank you I added some other plugins and toolbars and it works.

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
  •