2017 © Pedro Peláez
 

yii2-extension yii2-markdown

Markdown Widget for Yii2

image

wonail/yii2-markdown

Markdown Widget for Yii2

  • Monday, September 18, 2017
  • by ekevin228
  • Repository
  • 1 Watchers
  • 0 Stars
  • 90 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

Markdown Widget for Yii2

Widget based on simplemde-markdown-editor, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist wonail/yii2-markdown "*"

or add, (*4)

"wonail/yii2-markdown": "*"

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

Usage

Once the extension is installed, simply add widget to your page as follows:, (*6)

1) Usage with ActiveForm and model, (*7)

<?= $form->field($model, 'content')->widget(\wonail\markdown\MarkdownEditor::class, [
    'editorOptions' => [
        'showIcons' => ["code", "table"],
        'spellChecker' => false,
    ],
]); ?>

2) Usage without ActiveForm and model, (*8)

<?= \wonail\markdown\MarkdownEditor::widget([
    'name' => 'markdown-editor',
    'editorOptions' => [
        'showIcons' => ["code", "table"],
        'autofocus' => true,
        'spellChecker' => false,
    ],
]);
?>

Markdown Editor Options

You can find them on the options page, (*9)

The Versions

18/09 2017

dev-master

9999999-dev https://github.com/Wonail/yii2-markdown

Markdown Widget for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

by E-Kevin

yii2 wonail yii2 markdown editor yii2 markdown widget

18/09 2017

v0.1.1

0.1.1.0 https://github.com/Wonail/yii2-markdown

Markdown Widget for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

by E-Kevin

yii2 wonail yii2 markdown editor yii2 markdown widget