jet
121
3
Laravel

Laravel ckeditor display raw data in the database and post form

Posted 3 months ago by jet

this is how it's showing

 <p><strong>this is hoe is showing</strong></p>
in the database and post form

create form

<div class="form-group">
                    <label for="content">Content</label>
                    <textarea name="content" id="content" required class="form-control" rows="5" placeholder="Content"></textarea>
                </div>

                <div class="form-group">
                    <label for="status">Status</label>
                        <select class="custom-select" name="status" id="status" required>
                          <option value="1">Mr</option>
                          <option value="2">Mis</option>
                          <option value="3">male</option>
                        </select>
                </div>  
                
                <br>
                
                <input class="btn btn-success btn-lg btn-block" type="submit" value="Create post">
            </form>
        </div>
    </div>
@endsection

@section('scripts')
     <script src="/vendor/unisharp/laravel-ckeditor/ckeditor.js"></script>
     <script src="/vendor/unisharp/laravel-ckeditor/adapters/jquery.js"></script>
    <script>
        CKEDITOR.replace( 'content' );
    </script>
@endsection

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.