Laravel-admin GrapesJS 模版编辑器

laravel-admin GrapesJS 模版编辑器

Version v1.0.5

在laravel-admin 使用GrapesJS制作页面。

Use GrapesJS for web page building.

Demo

Installation

解压之后放到 extension_dir app/Admin/Extensions目录下,然后在composer.json中增加下面的配置

Unzip your files, and put into extension_dir app/Admin/Extensions, then add followings in your composer.json

    "repositories": [
        {
            "type": "path",
            "url": "app/Admin/extensions/laravel-admin-ext/pagebuilder",
            "options": {
              "symlink": false
            }
        }
    ]

然后运行composer require laravel-admin-ext/pagebuilder安装它

然后运行下面的命令发布配置文件

Publish the new setup config files

php artisan vendor:publish --provider="SolutionForest\PageBuilder\PageBuilderServiceProvider"

把上面生成的配置文件路径写入config/admin.phpextensions下:

Add new extensions in config/admin.php:

    'extensions' => [

        'pagebuilder' => [
            'disk' => 'admin',
            'path' => '/assets/',
            'newsletter' => [
                "gjs-preset-newsletter"=>[
                    "modalTitleImport" => 'Import template'
                ],
                'classic'=>[
                    'config' => [
                        //ckeditor configs
                    ]
                ]
            ],
            'webpage' => [
                "gjs-preset-webpage"=>[
                    "modalImportTitle" => 'Import'
                ],
                'classic'=>[
                    'config' => [
                        //ckeditor configs
                    ]
                ]
            ]
        ]

    ]

使用方法

Form field

$form->newsletterBuilder('newsletter', __('News Letter')); //使用newsletter builder
$form->pageBuilder('web', __('Web Page'));//使用web page builder

常见问题

本插件使用客制化GrapesJS, 请勿自行更新GrapesJS的js档案。 We use customize GrapesJS, please don't update js file yourself.

any issue please to Github

支持我們

SolutionForest Hong Kong Solution House. Our Website.

版权声明

请尊重作者知识产权, 勿传播他人使用。