Skip to content

andreosoft/yii2-codemirror-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-codemirror-widget

CodeMirror extension for Yii2

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require 'andreosoft/yii2-codemirror-widget'

or add

"andreosoft/yii2-codemirror-widget": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

field($model, 'content')->widget(Codemirror::className(), [ 'editorOptions' => [ 'lineNumbers' => true, 'matchBrackets' => true, 'indentUnit' => 4, 'indentWithTabs' => true, 'mode' => 'application/x-httpd-php', ], 'editorHeight' => 800]) ?>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages