2017 © Pedro Peláez
 

yii2-extension yii2-codemirror

CodeMirror extension for Yii2

image

kochiro/yii2-codemirror

CodeMirror extension for Yii2

  • Friday, August 7, 2015
  • by kochiro
  • Repository
  • 2 Watchers
  • 0 Stars
  • 134 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

CodeMirror

CodeMirror extension for Yii2, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist kochiro/yii2-codemirror "*", (*4)

or add, (*5)

"kochiro/yii2-codemirror": "*", (*6)

to the require section of your composer.json file., (*7)

Usage

Once the extension is installed, simply use it in your code by :, (*8)

field($file, 'description')->widget(CodeMirror::className(), [ 'id' => $file->id, 'name' => '[description][]'.$id, 'value' => $file->description, 'mode' => $mode, 'htmlOptions' => [ "id"=>'description_'.$file->id, "theme"=>'solarized dark' // set the theme based on the options in assets/theme, you must also include the corresponding css file in CodeMirrorAsset.php ] ]); ?>

The Versions

07/08 2015

dev-master

9999999-dev

CodeMirror extension for Yii2

  Sources   Download

LGPL-3.0+

The Requires

 

by Jay Leno

extension yii2

11/03 2015

v1.1.1

1.1.1.0

CodeMirror extension for Yii2

  Sources   Download

LGPL-3.0+

The Requires

 

by Jay Leno

extension yii2