1. Go to this page and download the library: Download xiewenfeng/lodpod-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/ */
xiewenfeng / lodpod-editor example snippets
/**
* Make a form builder.
*
* @return Form
*/
protected function form()
{
$form = new Form(new LodpodEditorTemplate);
$form->text('name', __('Name'));
$form->lodpod_editor('data', __('Data'))
->config([ // background width and height setting
'widthField' =>'width',
'heightField' =>'height',
'backgroundField'=>'background'
])
->fields([ // left items
[
'id'=>'sender',
'text'=>trans('admin.lodpod_editor.sender')
],
[
'id'=>'sender_mobile',
'text'=>trans('admin.lodpod_editor.sender_mobile')
],
['id'=>'sender_address',
'text'=>trans('admin.lodpod_editor.sender_address')
],
['id'=>'sender_company',
'text'=>trans('admin.lodpod_editor.sender_company')
],
['id'=>'sender_zip_code',
'text'=>trans('admin.lodpod_editor.sender_zip_code')
],
]);
return $form;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.