Don't use a div, use a textarea with the class of summernote. Then init summernote in jQuery.
Then you can pick it up in Laravel as you normall would.
Summer Sale! All accounts are 50% off this week.
I want to implement summernote into laravel but when I submit the form laravel does not find the input name so data does not post.
This is my html
<div class="form-group {{ $errors->has('body') ? ' has-error' : '' }}">
<label for="content" class="col-sm-2 control-label">Content</label>
<div class="col-sm-10">
<div id="summernote"></div>
<!-- <textarea class="note-codable" name="body" value="">{{ old('body') }}</textarea> -->
@if ($errors->has('body'))
<span class="help-block">{{ $errors->first('body') }}</span>
@endif
</div>
</div>
This is my jquery
$('document').ready(function() {
$('#summernote').summernote({ height: 200 });
$('.note-codable').attr('name', 'body').html('{{old('body')}}');
});
Can anyone help me fix this issue ?
Please or to participate in this conversation.