![]() 'uploadDir' => => You need to create uploads folder and chmod and set security for folder upload Or if you want to change the upload directory. 'redactor' => 'yii\redactor\RedactorModule', ConfigureĪdd to config file (config/web.php or common\config\main.php) 'modules' => [ To the require section of your composer.json. The preferred way to install this extension is through composer.Įither run php composer.phar require -prefer-dist yiidoc/yii2-redactor "*" ![]() Original yiidoc/yii2-redactor Readme: Installation Integrated CFDan's clipboardPaste plugin and added clipboard upload action. Integrate Redactor-10-clipboardPaste-plugin 'class' => 'yii\redactor\RedactorModule', The guest user file path is still 'guest'. When set, this hides logged in user id's in file paths and uses a common folder for all logged in users. 'removePastedImagesMessage' => "Please upload images via filemanager or drag'n'drop",Īdditional config option added - authUserDir (default blank, allowed characters a-zA-Z0-9 only) removePastedImagesMessage (default blank)Īdditional option to tell users the correct way to upload images. ![]() removePastedImages (default false)Īdditional option to remove images pasted in to content (as base64 data) - less restrictive than pastePlainText. Changes English (UK) language added 'clientOptions' => [ Has not been published on packagelist yet. 'title' => Yii::t('kveditor', 'Toggle full screen'),This version is a fork of yiidoc/yii2-redactor to allow some additionalįor install, replace "yiidoc/" with "stump90/" along with a repository if this '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 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. ![]() Lorem ipsum dolor sit amet, consectetur adipiscing elit. 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. |