]) Enable custom image manager with delete functionality // DefaultController.php public function actions() ]) Add custom plugins echo \vova07\imperavi\ Widget:: widget([ ]) Upload file and translit its name // DefaultController.php public function actions() 'replace' => true, // By default it throw an excepiton instead. 'uploadOnlyImage' => false, // For any kind of files uploading. 'path' => // Or absolute path to directory where files are stored. 'url' => '', // Directory URL address, where files are stored. ]) Upload and replace a file with the same name // DefaultController.php public function actions() ]) Upload file // DefaultController.php public function actions() 'class' => 'vova07\imperavi\actions\UploadFileAction', ]) Upload image // DefaultController.php public function actions() 'class' => 'vova07\imperavi\actions\GetFilesAction', ]) Add files that have already been uploaded // DefaultController.php public function actions() View.php echo \vova07\imperavi\ Widget:: widget([ 'options' => ], // These options are by default. 'class' => 'vova07\imperavi\actions\GetImagesAction', ]) Add images that have already been uploaded // DefaultController.php public function actions() ]) Like a widget for a predefined textarea echo \vova07\imperavi\ Widget:: widget([ ]) Like an ActiveForm widget use vova07\imperavi\ Widget Įcho $form-> field( $model, 'content')-> widget( Widget:: className(), [ Once the extension is installed, simply use it in your code: Like a widget echo \vova07\imperavi\ Widget:: widget([ To the require section of your composer.json file. Or add "vova07/yii2-imperavi-widget": "* " The preferred way to install this extension is through composer.Įither run $ php composer.phar require -prefer-dist vova07/yii2-imperavi-widget "* " Note that Imperavi Redactor itself is a proprietary commercial copyrighted softwareīut since Yii community bought OEM license you can use it for free with Yii. They get frustrated.Imperavi Redactor Widget is a wrapper for Imperavi Redactor 10.2.5, Now they can't, and that's the most complain they are making to me. In IPB 3.4, quotes were already a mess in the editor, but what my users tell's me is that they could change the editor to bbcode mode, and then control the content. Same thing with Youtube Video and almost everything else that is embed in the editor. If instead of seing the real quote we could see the bbcode it would be much easier to control it. I agree that seing the quotes, the youtube videos etc etc inside the editor its pretty, but we don't need something pretty, we need something that works.įor example, removing quotes inside quotes don't work, sometimes its even frustrating when we try to delete something from a quote and something unexpected happens. I understand that at this point its not an easy solution to just get rid of an editor and implement a new one.īut without replacing the editor, i suggest at least to remove the current implementation of 100% wysiwyg. We do have an upgrade planned to CKEditor and if at that point, concerns are not resolved to satisfaction, we can certainly look into something else.ĭo keep in mind, however, other solutions aren't perfect either. I don't believe we are at a point at this stage where we can just rip out and replace the editor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |