Created
June 10, 2020 16:25
-
-
Save trungx/5fd802f55a69939441675ec843b6e9e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>How to Use Summernote WYSIWYG Editor with Laravel? - ItSolutionStuff.com</title> | |
<script src="https://code.jquery.com/jquery-3.5.1.min.js" crossorigin="anonymous"></script> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"> | |
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/summernote-bs4.min.css" rel="stylesheet"> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/summernote-bs4.min.js"></script> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-8 offset-2 mt-5"> | |
<div class="card"> | |
<div class="card-header bg-info"> | |
<h6 class="text-white">How to Use Summernote WYSIWYG Editor with Laravel? - ItSolutionStuff.com</h6> | |
</div> | |
<div class="card-body"> | |
<form method="post" action="" enctype="multipart/form-data"> | |
@csrf | |
<div class="form-group"> | |
<label>Name</label> | |
<input type="text" name="name" class="form-control"/> | |
</div> | |
<div class="form-group"> | |
<label><strong>Description :</strong></label> | |
<textarea class="summernote" name="description"></textarea> | |
</div> | |
<div class="form-group text-center"> | |
<button type="submit" class="btn btn-success btn-sm">Save</button> | |
</div> | |
</form> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('.summernote').summernote(); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment