#8 /home/me/sites/www/vendor/yiisoft/yii2/console/controllers/HelpController. #7 /home/me/sites/www/vendor/yiisoft/yii2/console/controllers/HelpController.php(293): yii\console\controllers\HelpController->getCommandDescriptions() #6 /home/me/sites/www/vendor/yiisoft/yii2/console/controllers/HelpController.php(187): yii\console\controllers\HelpController->getCommands() #5 /home/me/sites/www/vendor/yiisoft/yii2/console/controllers/HelpController.php(175): yii\console\controllers\HelpController->getModuleCommands(Object(yii\console\Application)) #4 /home/me/sites/www/vendor/yiisoft/yii2/console/controllers/HelpController.php(238): yii\base\Module->getModule(‘redactor’) #3 /home/me/sites/www/vendor/yiisoft/yii2/base/Module.php(427): yii\BaseYii::createObject(Array, Array) #2 /home/me/sites/www/vendor/yiisoft/yii2/BaseYii.php(349): yii\di\Container->get(‘yii\redactor\Re…’, Array, Array) ![]() #1 /home/me/sites/www/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build(‘yii\redactor\Re…’, Array, Array) #0 /home/me/sites/www/vendor/yiisoft/yii2/di/Container.php(365): yii\di\Container->getDependencies(‘yii\redactor\Re…’) In /home/me/sites/www/vendor/yiisoft/yii2/di/Container.php:433 'title' => Yii::t('kveditor', 'Toggle full screen'),I think this started after upgrading to php 7.2Įxception ‘yii\base\InvalidConfigException’ with message ‘Failed to instantiate component or class “yii\redactor\RedactorModule”.’ 'title' => Yii::t('kveditor', 'Pretty format'), The following is the default button configuration, which can be overridden via this property. Set as an array of button names (matching the plugin's actions) and the values being an array of button label and title. 'matches' => new JsExpression("/(text|application)\\/(x-)?vb(a|script)/i"),Īrray, the configuration of the toolbar buttons. 'matches' => new JsExpression("/\\/x-handlebars-template|\\/x-mustache/i"), The following are the plugin settings automatically enabled within pluginOptions for each of the presets above: You can also set a preset and override the settings for the preset in pluginOptions.ĬodeMirror::PRESET_JS or 'js' for Javascript codeĬodeMirror::PRESET_JSON or 'json' for Javascript codeĬodeMirror::PRESET_HTML or 'html' for HTML codeĬodeMirror::PRESET_PHP or 'php' for PHP codeĬodeMirror::PRESET_GFM or 'gfm' for Github Flavored Markdown code 1 Currently I am using this Imperavi Redactor widget with my Yii Install. Set this to null or false if you do not wantĪny preset. When a preset is selected, it will be merged along with Krajee default preset settings This can be one of the PRESET constants mentioned below. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam. ![]() ![]() First of all, we are not impatient, install Redactor first. Redactor has an official Yii2 plug-in package, which is also very practical. Personally, I think Redactor is easier to use than Baidu editor. ![]() Lorem ipsum dolor sit amet, consectetur adipiscing elit. Today we will talk about the integration of yii2, another powerful and easy-to-use rich text editor Redactor. Vestibulum erat wisi, condimentum sed,Ĭommodo vitae, ornare sit amet, wisi. Pellentesque habitant morbi tristique senectus et netus et malesuada famesĪc turpis egestas.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |