首页 > 解决方案 > 在 laravel 5.7 的服务器端无法检索 UniSharp/laravel-ckeditor 字段值

问题描述

我正在使用https://artisansweb.net/install-use-ckeditor-laravel/安装指南以 laravel 形式设置 unisharp/ckeditor。我遵循了此处提到的所有步骤,但我无法在我的 php-laravel 代码中获取 ckeditor 的值。

这是我的代码,

在 config/app/js 中的提供者数组中的条目,

 Unisharp\Ckeditor\ServiceProvider::class,

html文件中的条目,

<body>
        @include('inc.navbar')
        <div class="container starter-template">
            @include('inc.message')
            @yield('content')
        </div>
<script src="{{ asset('vendor/unisharp/laravel-ckeditor/ckeditor.js') }}"></script>
<script>
            CKEDITOR.replace( 'summary-ckeditor' );
</script>
</body>

html文件中的条目以在表单中添加ckeditor,

<div class='form-group'>
        {{Form::label('body', 'Body')}}
        {{Form::text('body', '', ['id' => 'summary-ckeditor', 'class'=>'form-control', 'placeholder' => 'Enter Body'])}}
    </div>

我的作曲家作品,

"require": {
        "php": "^7.1.3",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "5.7.*",
        "laravel/tinker": "^1.0",
        "laravelcollective/html": "5.7.*",
        "unisharp/laravel-ckeditor": "^4.7"
    },

让我知道我错过了什么。

标签: phplaravel-5ckeditor

解决方案


推荐阅读