Giter Club home page Giter Club logo

nette-tinymce-filemanager's Introduction

Inicializace

Do JS inicializace je potřeba dát responsivefilemanager a další nastavení k tomu.

//tinymce.init.js

tinymce.init({
    plugins: [
        'responsivefilemanager' /* kamkoliv do seznamu pluginů */
    ],
    
    toolbar: [
        'responsivefilemanager' /* kamkoliv do toolbaru (ikonka s oknem a šipkou nahoru) */
    ],
    
    paste_data_images: true,
    image_advtab: true,
    relative_urls: false,

    external_filemanager_path: '/../tools/filemanager/', //cesta od tinymce.init.js do filemanageru, lze upravit v config.php
    filemanager_title: 'Filemanager', //jenom title
    external_plugins: {'filemanager': '/../tools/filemanager/plugin.min.js'}, //cesta od tinymce.init.js do plugin souboru filemanageru
    filemanager_access_key: 'b18f0453-a3f4-40d5-8d42-2dec8c542693' //tohle je uvedený v config.php
})

Nastavení

Nastavení filemanageru lze upravovat v filemanager/config/config.php.

//config.php

$config = [
    'access_keys' => [
        'b18f0453-a3f4-40d5-8d42-2dec8c542693'
    ],

    //nejpodstatnější, když je potřeba změnit cestu k souborům
    'upload_dir' => '/files/filemanager/source/',
    'current_path' => '../../files/filemanager/source/', //relativní
    'thumbs_base_path' => '../../files/filemanager/thumbs/', //relativní
    'thumbs_upload_dir' => '/files/filemanager/thumbs/',

];

nette-tinymce-filemanager's People

Contributors

nocturne32 avatar

Watchers

James Cloos avatar  avatar

Forkers

pprochy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.