Skip to content

Commit

Permalink
apply ckeditor5
Browse files Browse the repository at this point in the history
  • Loading branch information
joygram committed Dec 22, 2022
1 parent 0a6f860 commit d1786af
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,7 @@
});
}
});

$('.curriculam_page').addClass('active');

$( ".quizquestions" ).sortable({
Expand Down
4 changes: 3 additions & 1 deletion resources/views/layouts/frontend/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@
<!-- Toastr -->
<script src="{{ asset('backend/vendor/toastr/toastr.min599c.js?v4.0.2') }}"></script>


<!-- editor change by joygram 2022/12/21 -->
<script src="{{ asset('backend/editor/ckeditor.js') }}"></script>
<script src="{{ asset('backend/editor/joyeditor.js') }}"></script>

<script>
$(window).on("load", function (e){
Expand Down
13 changes: 12 additions & 1 deletion resources/views/site/course/view.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
@extends('layouts.frontend.index')

@section('javascript')
<!-- markdown preview : by joygram 2022/12/22 -->
<script type="text/javascript">
$(document).ready(function() {
initJoyEditor('overview', true);
});
</script>
@endsection

@section('content')

<!-- content start -->
<div class="container-fluid p-0 home-content">
<!-- banner start -->
Expand Down Expand Up @@ -79,7 +90,7 @@

@if($course->overview)
<h4 class="mt-4">Course Overview</h4>
{!! $course->overview !!}
<div id=overview>{!! $course->overview !!}</div>
@endif

@if($is_curriculum)
Expand Down

0 comments on commit d1786af

Please sign in to comment.