2017 © Pedro Peláez
 

yii2-extension yii2-grafikart-markdown-editor

Markdown editor with opportunity to uploading images

image

hector68/yii2-grafikart-markdown-editor

Markdown editor with opportunity to uploading images

  • Thursday, February 18, 2016
  • by Hector68
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

MARKDOWN EDITOR

base on https://github.com/Grafikart/JS-Markdown-Editor js widget

About Markdown: - English - Russian, (*1)

Installation

php composer.phar require --prefer-dist hector68/yii2-grafikart-markdown-editor

or add, (*2)

"hector68/yii2-grafikart-markdown-editor" : "^0.1"

o the require section of your composer.json file., (*3)

if need upload images on server when include module to your config, (*4)

    'modules' => [
        'markdown-editor' => [
            'class' => 'Hector68\GrafikartMarkdownEditor\Module',
            'uploadDir' => '@webroot/images/markdown',
            'isFileNameUnique' => true, //set unique name or use base name,
            'maxSize' => 2097152, // in bites, Default 2mb
            'expansions' => ['jpg', 'png'] 
        ],
    ],
    ...

Form

  <?= $form->field($model, 'firstMessage')->widget(Hector68\GrafikartMarkdownEditor\widgets\MdEditor::className(), [
            'uploader' => Url::to(['markdown-editor/upload/data']), //or false. Default false
            'preview' => true, // default false,
            'jsOptions' => [], // js options of widget. See https://github.com/Grafikart/JS-Markdown-Editor,
            'images' => [], //Default images See https://github.com/Grafikart/JS-Markdown-Editor,
        ]) ?>

Render

$parser = new cebe\markdown\Markdown();
echo $parser->parse($model->firstMessage);

The Versions

18/02 2016

v0.2

0.2.0.0

Markdown editor with opportunity to uploading images

  Sources   Download

MIT

The Requires

 

by Dmitriy Ronzhin

extension yii2 jquery form yii editor markdown input

05/02 2016

dev-master

9999999-dev

Markdown editor with opportunity to uploading images

  Sources   Download

MIT

The Requires

 

by Dmitriy Ronzhin

extension yii2 jquery form yii editor markdown input

05/02 2016

v0.1

0.1.0.0

Markdown editor with opportunity to uploading images

  Sources   Download

MIT

The Requires

 

by Dmitriy Ronzhin