2017 © Pedro Peláez
 

yii2-extension yii2-burivuh

Simple notepad with markdown editor for yii2

image

zabachok/yii2-burivuh

Simple notepad with markdown editor for yii2

  • Thursday, April 26, 2018
  • by zabachok
  • Repository
  • 1 Watchers
  • 1 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Burivuh - notepad with markdown editor

Simple notepad with markdown editor for yii2 Все это на русском, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist zabachok/yii2-burivuh "*"

or add, (*4)

"zabachok/yii2-burivuh": "*"

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

Run module migration:, (*6)

php yii migrate --migrationPath=@vendor/zabachok/yii2-burivuh/migrations

Activating

Add to you config file:, (*7)

'modules' => [
    ...
    'burivuh' => [
        'class' => zabachok\burivuh\Module::class,
    ],
]

and to bootstrapping:, (*8)

'bootstrap' => [..., zabachok\burivuh\Bootstrap::class],

Options

  1. db - name of database component:
'burivuh' => [
        'class' => zabachok\burivuh\Module::class,
        'db'=>'db',
    ...
    ],
  1. usernameCallback - anonymous function for generate username:
'burivuh' => [
        'class' => zabachok\burivuh\Module::class,
        'usernameCallback'  =>function($user_id)
            {
                $user = \common\models\user\User::findIdentity($user_id);
                return is_null($user) ? 'Undefined' : $user->username;
            },
    ...
    ],
  1. route - you can use custom route to this module. For example:
'burivuh' => [
        'class' => zabachok\burivuh\Module::class,
        'route' => 'wiki',
    ...
    ],

It will be generate links like example.com/wiki/doc/mydoc 1. accessRules - this option configuring AccessControl::rules component. For example:, (*9)

'burivuh' => [
        'class' => zabachok\burivuh\Module::class,
        'as access' => [
            'class' => yii\filters\AccessControl::className(),
            'rules' => [
                [
                    'allow' => true,
                    'roles' => ['?'],
                ],
            ],
        ],
    ...
    ],

Usage

Open url: http://your-site.com/burivuh
You can create, update and delete categories and documents. All actions is available only for authorized users., (*10)

Hot keys

In list

Arrow up and arrow down - moving up and down in list
Enter - open dir or file
Backspace - up in filesystem tree, (*11)

In view

Ctrl + e - edit the document, (*12)

In write

Ctrl + s - save document
Shift + Enter - new line
Tab - four spaces, (*13)

Text formatting Ctrl + h - make this line a header, (*14)

The Versions

26/04 2018

dev-master

9999999-dev

Simple notepad with markdown editor for yii2

  Sources   Download

MIT

The Requires

 

documentation module markdown notepad

26/04 2018

dev-BACK-419

dev-BACK-419

Simple notepad with markdown editor for yii2

  Sources   Download

MIT

The Requires

 

documentation module markdown notepad

14/03 2016

0.3

0.3.0.0

Simple notepad with markdown editor for yii2

  Sources   Download

MIT

The Requires

 

documentation module markdown notepad

21/02 2016

0.2.2

0.2.2.0

Simple markdown editor for yii2 using filesystem

  Sources   Download

MIT

The Requires

 

documentation module markdown

19/02 2016

0.2.1

0.2.1.0

Simple markdown editor for yii2 using filesystem

  Sources   Download

MIT

The Requires

 

documentation module markdown

17/02 2016

0.2.0

0.2.0.0

Simple markdown editor for yii2 using filesystem

  Sources   Download

MIT

The Requires

 

documentation module markdown