Answer the question
In order to leave comments, you need to log in
Why does the editor from imperavi not work, the logs show that redactor.min.js is not connected?
Hello, the redactor.js script (text editing function) does not work in yii2. I can't make text bold, add an image, add bullets, and so on. Here are my logs. What could be the reason?
AppAsset.php
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace app\assets;
use yii\web\AssetBundle;
/**
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
class AppAsset extends AssetBundle
{
public $basePath = '@webroot';
public $baseUrl = '@web';
public $css = [
// 'css/site.css',
'css/medical-guide.css',
'fonts/medical-guide-icons.css',
'css/default-color.css',
// 'css/bootstrap.css',
'css/dropmenu.css',
'css/sticky-header.css',
'css/style.css',
'css/settings.css',
'css/extralayers.css',
'css/accordion.css',
'css/tabs.css',
'css/owl.carousel.css',
'css/jquery.mmenu.all.css',
'css/demo.css',
'css/loader.css',
'css/cubeportfolio.min.css',
'css/jquery.fancybox.css',
'css/piechart-style.css',
'css/theme-colors/brown.css',
'css/theme-colors/dark-blue.css',
'css/theme-colors/green.css',
'css/theme-colors/light-blue.css',
'css/theme-colors/light-green.css',
'css/theme-colors/orange.css',
'css/theme-colors/pink.css',
'css/theme-colors/purple.css',
'css/theme-colors/red.css',
'css/theme-colors/yellow.css',
];
public $js = [
// 'js/jquery.js',
'js/scroll-desktop.js',
'js/scroll-desktop-smooth.js',
'js/jquery.themepunch.revolution.min.js',
'js/jquery.themepunch.tools.min.js',
'js/classie.js',
'js/jquery-ui-1.10.3.custom.js',
// 'js/counter.js',
'js/tabs.js',
'js/owl.carousel.js',
'js/jquery.mmenu.min.all.js',
'js/easy-responsive-tabs.js',
'js/jquery.cubeportfolio.min.js',
'js/jquery.fancybox.js',
'js/jquery.fancybox-media.js',
'js/main.js',
// 'js/piecha/rt.min.js',
'js/price-slider.js',
'js/rs-slides.js',
'js/myjs.js',
'js/custom.js',
];
public $depends = [
'yii\web\YiiAsset',
];
}
Answer the question
In order to leave comments, you need to log in
I didn’t solve the problem .. but instead of the editor from imperavi, I found it much better, besides, there are no problems with it .. Here is the source for this extension: https://github.com/MihailDev/yii2-ckeditor
I found this extension on resource https://webformyself.com/yii2-ckeditor/
That's what I got :)
In general, thanks to everyone who tried to help me!))
Yours AppAsset
already depends on yii\web\YiiAsset
, which in turn depends on , and you connect JqueryAsset
another one .
PS: sorry, I see that they commented it out. jquery.js
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question