Laravel 使用 CKeditor 编辑 Post 内容
Laravel Edit Post Content using CKeditor
我正在尝试使用 CKeditor 编辑现有的 post。内容未加载。
<div class="form-group">
<label>Content</label>
<textarea id="editor1" name="content" class="form-control" rows="3" placeholder="Enter ...">
{{ Request::old('content') }}
</textarea>
</div>
我也无法从数据库中获取日期。
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="date" name="published_at" class="form-control" value="{{ $post->published_at->format('M jS Y') }}">
</div>
对于文本区域,检查旧输入,但回退到默认使用模型的内容属性(post 的内容)
<textarea ....>{!! Request::old('content', $post->content) !!}</textarea>
关于你的日期问题,我不知道你遇到了什么问题。
我正在尝试使用 CKeditor 编辑现有的 post。内容未加载。
<div class="form-group">
<label>Content</label>
<textarea id="editor1" name="content" class="form-control" rows="3" placeholder="Enter ...">
{{ Request::old('content') }}
</textarea>
</div>
我也无法从数据库中获取日期。
<div class="input-group">
<div class="input-group-addon">
<i class="fa fa-calendar"></i>
</div>
<input type="date" name="published_at" class="form-control" value="{{ $post->published_at->format('M jS Y') }}">
</div>
对于文本区域,检查旧输入,但回退到默认使用模型的内容属性(post 的内容)
<textarea ....>{!! Request::old('content', $post->content) !!}</textarea>
关于你的日期问题,我不知道你遇到了什么问题。