PHP code example of statamic-addon / visual-editor
1. Go to this page and download the library: Download statamic-addon/visual-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/ */
statamic-addon / visual-editor example snippets
use Statamic\Facades\Icon;
Icon::register('vizuall', resource_path('svg/set-icons'));
use Statamic\Fieldtypes\Sets;
Sets::useIcons('vizuall', resource_path('svg/set-icons'));
bash
php please sve:install
antlers
{{# Replicator / Bard set partial #}}
<div class="..." {{ visual_edit }}>
{{ text }}
</div>