2017 © Pedro Peláez
 

yii2-extension tinymce-responsivefilemanager

TinyMCE + Responsive file manager widget for Yii2

image

xvs32x/tinymce-responsivefilemanager

TinyMCE + Responsive file manager widget for Yii2

  • Friday, September 1, 2017
  • by xvs32x
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,893 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 13 Versions
  • 16 % Grown

The README.md

tinymce-responsivefilemanager

TinyMCE 4.6.3 + responsivefilemanager 9.9.7, (*1)

Installation

composer require xvs32x/tinymce-responsivefilemanager, (*2)

Usage:

First, create @web/uploads/filemanager/source and @web/uploads/filemanager/thumbs folders, (*3)

$form->field($model, 'title')->widget(\xvs32x\tinymce\Tinymce::className(), [
        //TinyMCE options
        'pluginOptions' => [
            'plugins' => [
                "advlist autolink link image lists charmap print preview hr anchor pagebreak",
                "searchreplace wordcount visualblocks visualchars insertdatetime media nonbreaking",
                "table contextmenu directionality emoticons paste textcolor responsivefilemanager code"
            ],
            'toolbar1' => "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | styleselect",
            'toolbar2' => "| responsivefilemanager | link unlink anchor | image media | forecolor backcolor ",
            'image_advtab' => true,
            'filemanager_title' => "Filemanager",
            'language' => ArrayHelper::getValue(explode('_', Yii::$app->language), '0', Yii::$app->language),
        ],
        //Widget Options
        'fileManagerOptions' => [
            //Upload Manager Configuration
            'configPath' => [
                //path from base_url to base of upload folder with start and final /
                'upload_dir' => '/uploads/filemanager/source/',
                //relative path from filemanager folder to upload folder with final /
                'current_path' => '../../../uploads/filemanager/source/',
                //relative path from filemanager folder to thumbs folder with final / (DO NOT put inside upload folder)
                'thumbs_base_path' => '../../../uploads/filemanager/thumbs/'
            ]
        ]
    ])

Yii2 Advanced template ready!

 [
    'fileManagerOptions' => [
        'configPath' => [
           'upload_dir' => '/uploads/filemanager/source/',
           'current_path' => '../../../../../frontend/web/uploads/filemanager/source/',
           'thumbs_base_path' => 'uploads/filemanager/thumbs/',
           'base_url' => 'http://frontend', // <-- uploads/filemanager path must be saved in frontend
        ]
    ]
  ]

Yii2 JS validation fix

  'pluginOptions' => [
      'setup' => new \yii\web\JsExpression("function(editor){
            editor.on('change', function () {
            editor.save();
            });
      }"),

   ],

The Versions

01/09 2017

dev-master

9999999-dev

TinyMCE + Responsive file manager widget for Yii2

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar xvs32x

xvs32x

21/02 2016

1.0.13

1.0.13.0

TinyMCE + Responsive file manager widget for Yii2

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar xvs32x

xvs32x

21/02 2016

1.0.12

1.0.12.0

TinyMCE + Responsive file manager widget for Yii2

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar xvs32x

xvs32x

20/02 2016

1.0.11

1.0.11.0

TinyMCE + Responsive file manager widget for Yii2

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar xvs32x

xvs32x

20/02 2016

1.0.9

1.0.9.0

TinyMCE + Responsivefilemanages widget for Yii2

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar xvs32x

xvs32x

20/02 2016

1.0.8

1.0.8.0

TinyMCE + Responsivefilemanages widget for Yii2

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar xvs32x

xvs32x

20/02 2016

1.0.7

1.0.7.0

TinyMCE + Responsivefilemanages widget for Yii2

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar xvs32x

xvs32x

19/02 2016

1.0.6

1.0.6.0

TinyMCE + Responsivefilemanages widget for Yii2

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar xvs32x

xvs32x

19/02 2016

1.0.5

1.0.5.0

TinyMCE + Responsivefilemanages widget for Yii2

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar xvs32x

xvs32x

19/02 2016

1.0.4

1.0.4.0

TinyMCE + Responsivefilemanages widget for Yii2

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar xvs32x

xvs32x

19/02 2016

1.0.3

1.0.3.0

TinyMCE + Responsivefilemanages widget for Yii2

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar xvs32x

xvs32x

19/02 2016

1.0.1

1.0.1.0

TinyMCE + Responsivefilemanages widget for Yii2

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar xvs32x

xvs32x

19/02 2016

1.0.0

1.0.0.0

TinyMCE + Responsivefilemanages widget for Yii2

  Sources   Download

GPL-3.0+

The Requires

 

by Avatar xvs32x

xvs32x