Skip to content

Instantly share code, notes, and snippets.

@DeaVenditama
Last active August 18, 2020 05:16
Show Gist options
  • Save DeaVenditama/606be46e07e6ec5aaa2522510610a827 to your computer and use it in GitHub Desktop.
Save DeaVenditama/606be46e07e6ec5aaa2522510610a827 to your computer and use it in GitHub Desktop.
<?= $this->section('script') ?>
<script src="<?= base_url('ckeditor5-build-classic/ckeditor.js')?>" type="text/javascript"></script>
<style>
.ck-editor__editable_inline{
min-height: 200px;
}
</style>
<script>
ClassicEditor
.create( document.querySelector( '#editor' ) )
.then( editor => {
console.log( editor );
} )
.catch( error => {
console.error( error );
} );
</script>
<?= $this->endSection() ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment