PHP Classes

File: public/js/tinyMCE/html.php

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   public/js/tinyMCE/html.php   Download  
File: public/js/tinyMCE/html.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: 2,623 bytes
 

Contents

Class file image Download
<?php
  
return array(
      
'relative_urls' => false,
      
'selector' => 'html-editable-selector',
      
'language' => 'en',
      
'inline' => true,
      
'templates' => 'miniTemplates',
      
'menubar' => false,
      
'forced_root_block' => '',
      
'paste_word_valid_elements'=> "p,b,strong,i,em,h1,h2,h3,h4",
      
'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 paste image charmap preview anchor emoticons help hr nonbreaking',
          
'searchreplace visualblocks code fullscreen',
          
'insertdatetime media table 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 paste | formatselect | forecolor | bold italic strikethrough underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image media minitemplate | code',
      
'setup' => 'melisTinyMCE.tinyMceActionEvent',
      
'init_instance_callback' => 'tinyMceCleaner'
  
);

# For Reference
/* return array(
     'relative_urls' => false,
     'selector' => 'html-editable-selector',
     'language' => 'en',
     'inline' => true,
     'templates' => 'miniTemplates',
     'menubar' => false,
     'forced_root_block' => '',
     'cleanup' => false,
     'verify_html' => false,
     'plugins' => array(
         'advlist autolink lists link image charmap preview anchor textcolor colorpicker emoticons help hr nonbreaking',
         'searchreplace visualblocks code fullscreen',
         'insertdatetime media table contextmenu template'
     ),
     'image_advtab' => true,
     'toolbar' => 'insertfile undo redo | formatselect | forecolor backcolor | bold italic strikethrough underline hr nonbreaking | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image media template | charmap emoticons code print help',
     'init_instance_callback' => 'tinyMceCleaner',
 ); */