|
@@ -499,48 +499,64 @@
|
|
<div class="card card-info card-outline">
|
|
<div class="card card-info card-outline">
|
|
<div class="card-header">
|
|
<div class="card-header">
|
|
<h3 class="card-title">
|
|
<h3 class="card-title">
|
|
- CK Editor
|
|
|
|
|
|
+ CKEditor5
|
|
<small>Advanced and full of features</small>
|
|
<small>Advanced and full of features</small>
|
|
</h3>
|
|
</h3>
|
|
<!-- tools box -->
|
|
<!-- tools box -->
|
|
<div class="card-tools">
|
|
<div class="card-tools">
|
|
- <button type="button" class="btn btn-info btn-sm" data-widget="collapse" data-toggle="tooltip" title="Collapse">
|
|
|
|
- <i class="fa fa-minus"></i></button>
|
|
|
|
- <button type="button" class="btn btn-info btn-sm" data-widget="remove" data-toggle="tooltip" title="Remove">
|
|
|
|
- <i class="fa fa-times"></i></button>
|
|
|
|
|
|
+ <button type="button" class="btn btn-tool btn-sm"
|
|
|
|
+ data-widget="collapse"
|
|
|
|
+ data-toggle="tooltip"
|
|
|
|
+ title="Collapse">
|
|
|
|
+ <i class="fa fa-minus"></i>
|
|
|
|
+ </button>
|
|
|
|
+ <button type="button" class="btn btn-tool btn-sm"
|
|
|
|
+ data-widget="remove"
|
|
|
|
+ data-toggle="tooltip"
|
|
|
|
+ title="Remove">
|
|
|
|
+ <i class="fa fa-times"></i>
|
|
|
|
+ </button>
|
|
</div>
|
|
</div>
|
|
<!-- /. tools -->
|
|
<!-- /. tools -->
|
|
</div>
|
|
</div>
|
|
<!-- /.card-header -->
|
|
<!-- /.card-header -->
|
|
- <div class="card-body pad">
|
|
|
|
- <form>
|
|
|
|
- <textarea id="editor1" name="editor1" rows="10" cols="80">
|
|
|
|
- This is my textarea to be replaced with CKEditor.
|
|
|
|
- </textarea>
|
|
|
|
- </form>
|
|
|
|
|
|
+ <div class="card-body">
|
|
|
|
+ <div class="mb-3">
|
|
|
|
+ <textarea id="editor1" name="editor1" style="width: 100%">This is my textarea to be replaced with CKEditor.</textarea>
|
|
|
|
+ </div>
|
|
|
|
+ <p class="text-sm mb-0">Please adhere to the <a href="https://ckeditor.com/ckeditor-5-builds/#classic">CKEditor</a>
|
|
|
|
+ license when using it!</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.card -->
|
|
<!-- /.card -->
|
|
|
|
|
|
- <div class="card">
|
|
|
|
|
|
+ <div class="card card-outline card-info">
|
|
<div class="card-header">
|
|
<div class="card-header">
|
|
- <h3 class="card-title">Bootstrap WYSIHTML5
|
|
|
|
|
|
+ <h3 class="card-title">
|
|
|
|
+ Bootstrap WYSIHTML5
|
|
<small>Simple and fast</small>
|
|
<small>Simple and fast</small>
|
|
</h3>
|
|
</h3>
|
|
<!-- tools box -->
|
|
<!-- tools box -->
|
|
<div class="card-tools">
|
|
<div class="card-tools">
|
|
- <button type="button" class="btn btn-default btn-sm" data-widget="collapse" data-toggle="tooltip" title="Collapse">
|
|
|
|
|
|
+ <button type="button" class="btn btn-tool btn-sm" data-widget="collapse" data-toggle="tooltip"
|
|
|
|
+ title="Collapse">
|
|
<i class="fa fa-minus"></i></button>
|
|
<i class="fa fa-minus"></i></button>
|
|
- <button type="button" class="btn btn-default btn-sm" data-widget="remove" data-toggle="tooltip" title="Remove">
|
|
|
|
|
|
+ <button type="button" class="btn btn-tool btn-sm" data-widget="remove" data-toggle="tooltip"
|
|
|
|
+ title="Remove">
|
|
<i class="fa fa-times"></i></button>
|
|
<i class="fa fa-times"></i></button>
|
|
</div>
|
|
</div>
|
|
<!-- /. tools -->
|
|
<!-- /. tools -->
|
|
</div>
|
|
</div>
|
|
<!-- /.card-header -->
|
|
<!-- /.card-header -->
|
|
<div class="card-body pad">
|
|
<div class="card-body pad">
|
|
- <form>
|
|
|
|
- <textarea class="textarea" placeholder="Place some text here" style="width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;"></textarea>
|
|
|
|
- </form>
|
|
|
|
|
|
+ <div class="mb-3">
|
|
|
|
+ <textarea class="textarea" placeholder="Place some text here"
|
|
|
|
+ style="width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;"></textarea>
|
|
|
|
+ </div>
|
|
|
|
+ <p class="text-sm mb-0">
|
|
|
|
+ Editor <a href="https://github.com/bootstrap-wysiwyg/bootstrap3-wysiwyg">Documentation and license
|
|
|
|
+ information.</a>
|
|
|
|
+ </p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -766,20 +782,28 @@
|
|
<!-- AdminLTE for demo purposes -->
|
|
<!-- AdminLTE for demo purposes -->
|
|
<script src="../../dist/js/demo.js"></script>
|
|
<script src="../../dist/js/demo.js"></script>
|
|
<!-- CK Editor -->
|
|
<!-- CK Editor -->
|
|
-<script src="https://cdn.ckeditor.com/4.4.3/standard/ckeditor.js"></script>
|
|
|
|
|
|
+<script src="../../plugins/ckeditor/ckeditor.js"></script>
|
|
<!-- Bootstrap WYSIHTML5 -->
|
|
<!-- Bootstrap WYSIHTML5 -->
|
|
<script src="../../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
|
|
<script src="../../plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
|
|
<script>
|
|
<script>
|
|
$(function () {
|
|
$(function () {
|
|
// Replace the <textarea id="editor1"> with a CKEditor
|
|
// Replace the <textarea id="editor1"> with a CKEditor
|
|
// instance, using default configuration.
|
|
// instance, using default configuration.
|
|
- CKEDITOR.replace('editor1');
|
|
|
|
|
|
+ ClassicEditor
|
|
|
|
+ .create(document.querySelector('#editor1'))
|
|
|
|
+ .then(function (editor) {
|
|
|
|
+ // The editor instance
|
|
|
|
+ })
|
|
|
|
+ .catch(function (error) {
|
|
|
|
+ console.error(error)
|
|
|
|
+ })
|
|
|
|
|
|
// bootstrap WYSIHTML5 - text editor
|
|
// bootstrap WYSIHTML5 - text editor
|
|
- $(".textarea").wysihtml5({
|
|
|
|
- toolbar: {fa: true},
|
|
|
|
- });
|
|
|
|
- });
|
|
|
|
|
|
+
|
|
|
|
+ $('.textarea').wysihtml5({
|
|
|
|
+ toolbar: { fa: true }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
</script>
|
|
</script>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|