PHP Classes

Ext Imperavi: Integrates the Imperavi editor in YII applications

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 14 All time: 11,441 This week: 455Up
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  
Innovation award
Innovation award
Nominee: 18x

 

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 (22)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:14
This week:0
All time:11,441
This week:455Up