PHP Classes

File: public/js/tinyMCE/media.php

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   public/js/tinyMCE/media.php   Download  
File: public/js/tinyMCE/media.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Melis CMS
Content management system that provides its tools
Author: By
Last change:
Date: 1 year ago
Size: 1,277 bytes
 

Contents

Class file image Download
<?php
   
return array(
       
'relative_urls' => false,
       
'selector' => 'media-editable-selector',
       
'language' => 'en',
       
'inline' => true,
       
'menubar' => false,
       
'forced_root_block' => '',
       
'cleanup' => false,
       
'verify_html' => false,
       
'file_picker_types' => 'file image media',
       
'file_picker_callback' => 'filePickerCallback',
       
'images_upload_url' => '/melis/MelisCore/melisTinyMce/uploadImage',
       
'plugins' => array(
           
//[contextmenu, textcolor, colorpicker] this plugin is already built in the core editor as of TinyMCE v. 5
           
'lists advlist autolink link image charmap print preview anchor',
           
'searchreplace visualblocks code fullscreen',
           
'insertdatetime media table paste minitemplate'
       
),
       
'external_plugins' => [
           
'minitemplate' => '/MelisCore/js/minitemplate/plugin.min.js'
       
],
       
'melis_minitemplate' => [
           
/**
             * return templates with the given prefix only
             */
           
'prefix' => '',

           
/**
             * site id
             */
           
'site_id' => ''
       
],
       
'image_advtab' => true,
       
'toolbar' => 'insertfile undo redo link image media minitemplate | code',
       
'init_instance_callback' => 'tinyMceCleaner',
    );