PHP Classes

Ext Imperavi: Integrates the Imperavi editor in YII applications

Recommend this page to a friend!
  Info   View files Example   View files View files (22)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 14 This week: 1All time: 11,241 This week: 560Up
Version License PHP version Categories
extimperavi 1.0MIT/X Consortium ...5HTML, PHP 5, Libraries, Content manag...
Description 

Author

This package integrates the Imperavi editor in YII applications.

It provides several asset plugin classes for PHP applications written with the YII framework to integrate the Imperavi Redactor content editor.

Currently, the asset plugins allow loading the necessary JavaScript code from the Imperavi Redactor package to support features like file uploading, handling images, attaching the content to model classes, etc.

Picture of Insolita
  Performance   Level  
Name: Insolita <contact>
Classes: 20 packages by
Country: Russian Federation Russian Federation
Age: 38
All time rank: 335492 in Russian Federation Russian Federation
Week rank: 411 Up22 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 14x

Example

<?php
/**
 * ?????? ???????? ???? ????????? ????????
 * ????? ?????????? ID ?????????

 * @var \yii\data\ActiveDataProvider $imagesDataProvider
 * @var \yii\data\ActiveDataProvider $filesDataProvider
 */
?>
<section id="redactor-modal-image-manager">
    <div class="modal-body">
        <?php echo \yii\bootstrap\Tabs::widget(
            [
               
'items' => [
                    [
                       
'label' => '????????? ???????????',
                       
'active' => true,
                       
'content' => $this->render(
                           
'_attachform',
                            [
                               
'model' => $model,
                               
'dataProvider' => $imagesDataProvider, //??? ??????????? ???????????
                               
'type' => 'image'
                           
]
                        )
                    ],
                    [
                       
'label' => '????????? ????',
                       
'content' => $this->render(
                           
'_attachform',
                            [
                               
'model' => $model,
                               
'dataProvider' => $filesDataProvider, //??? ??????????? ?????
                               
'type' => 'file'
                           
]
                        )
                    ]
                ]
            ]
        )
?>

    </div>


</section>



Details

Imperavi (Redactor) plugins

...

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist insolita/extimperavi "*"

or add

"insolita/extimperavi": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \insolita\extimperavi\AutoloadExample::widget(); ?>```

  Files folder image Files  
File Role Description
Files folder imageattachmanager_views_examples (10 files)
Files folder imagejs (5 directories)
Plain text file AnypagePluginAsset.php Class Class source
Plain text file AttachManagerPluginAsset.php Class Class source
Plain text file BootclipsPluginAsset.php Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Plain text file FaiconsPluginAsset.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation
Plain text file SubsupPluginAsset.php Class Class source

  Files folder image Files  /  attachmanager_views_examples  
File Role Description
  Plain text file AttachModelExample.php Class Class source
  Accessible without login Plain text file attach_index.php Example Example script
  Plain text file ExampleUploaderController.php Class Class source
  Accessible without login Plain text file list.php Aux. Template script
  Accessible without login Plain text file preview.php Aux. Auxiliary script
  Accessible without login Plain text file _attachform.php Example Example script
  Accessible without login Plain text file _fileitem.php Example Example script
  Accessible without login Plain text file _filelist.php Example Example script
  Accessible without login Plain text file _imageitem.php Example Example script
  Accessible without login Plain text file _imagelist.php Example Example script

  Files folder image Files  /  js  
File Role Description
Files folder imageanypagemodal (1 file)
Files folder imageattachmanager (1 file)
Files folder imagebootclips (1 file)
Files folder imagefaicons (1 file)
Files folder imagesubsup (1 file)

  Files folder image Files  /  js  /  anypagemodal  
File Role Description
  Accessible without login Plain text file anypagemodal.js Data Auxiliary data

  Files folder image Files  /  js  /  attachmanager  
File Role Description
  Accessible without login Plain text file attachmanager.js Data Auxiliary data

  Files folder image Files  /  js  /  bootclips  
File Role Description
  Accessible without login Plain text file bootclips.js Data Auxiliary data

  Files folder image Files  /  js  /  faicons  
File Role Description
  Accessible without login Plain text file faicons.js Data Auxiliary data

  Files folder image Files  /  js  /  subsup  
File Role Description
  Accessible without login Plain text file subsup.js Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:14
This week:1
All time:11,241
This week:560Up