PHP code example of vinelab / laravel-editor
1. Go to this page and download the library: Download vinelab/laravel-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/ */
vinelab / laravel-editor example snippets
'Vinelab\Editor\EditorServiceProvider',
Editor::view()
Editor::view($text);
{{ Form::open(['url' => 'handle', 'method' => 'POST']) }}
{{ Editor::view() }}
{{ Form::submit() }}
{{ Form::close() }}
$input = Input::get(Editor::input());
$content = Editor::content($input);
// $content is an instance of Vinelab\Editor\Content
$json = $content->toJson();