Voyager
HomeGithubIssues
1.6
1.6
  • Introduction
  • Getting started
    • What is Voyager
    • Prerequisites
    • Installation
    • Upgrading
    • Configurations
  • BREAD
    • Introduction
    • Relationships
    • Formfields
      • Checkbox/Multiple Checkbox/Radio
      • Coordinates
      • Date & Time
      • Dropdown
      • Images
      • Media Picker
      • Number
      • TinyMCE
  • Core concepts
    • Routing
    • Media Manager
    • Menus and Menu Builder
    • Database Manager
    • Settings
    • Compass
    • Roles and Permissions
    • Helper methods
    • Multilanguage
  • Customization
    • Overriding files
    • Overriding Routes
    • Additional CSS and JS
    • Enabling Soft-Delete
    • Custom relationship attributes
    • Adding custom Formfields
    • Coordinates
    • BREAD accessors
    • Custom guard
    • Action buttons
  • Troubleshooting
    • Using HTTPS on yours site
    • Missing required parameter
Powered by GitBook
On this page
Export as PDF
  1. BREAD
  2. Formfields

TinyMCE

If you want to customize TinyMCE within Voyager, you can do so by adding a additional JS file to your config.

In this file you have to define a function like

function tinymce_init_callback(editor)
{
    //...
}

If you need to manipulate TinyMCE before it was initialized, you can use

function tinymce_setup_callback(editor)
{
    //...
}

If you want to customize TinyMCE init configuration Options you can merge your custom options in BREAD details as follow:

{
    "tinymceOptions" : {
        "name": "value"
    }
}

If you want to use tinyMCE outside it's default template rich_text_box you'll need initialize it with:

tinymce.init(window.voyagerTinyMCE.getConfig());

For all possible variables, functions and configuration Options please refer to the TinyMCE documentation.

PreviousNumberNextRouting

Last updated 2 years ago