1. Go to this page and download the library: Download borales/yii2-medium-editor library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
borales / yii2-medium-editor example snippets
return [
// ... other settings
'components' => [
// ... other settings
'assetManager' => [
'bundles' => [
'borales\medium\Asset' => [
// set `bootstrap` theme for Medium Editor widget as a default one
'theme' => 'bootstrap',
// switch Medium Editor sources from the "latest" to the specific version
'useLatest' => false,
// use specific version of Medium Editor plugin with "useLatest=false"
'cdnVersion' => '5.22.1',
],
]
],
]
]
return [
// ... other settings
'components' => [
// ... other settings
'assetManager' => [
'bundles' => [
'borales\medium\Asset' => [
// use Medium Editor plugin sources from this path
'sourcePath' => '@bower/medium-editor/dist',
],
]
],
]
]