<script src="https://cdn.ckeditor.com/ckeditor5/40.0.0/classic/ckeditor.js"></script>
<textarea class="form-control" name="description" id="description" rows="10"><?php echo openssl_decrypt($notes[$key]['description'],"AES-128-ECB",$enc_key);//base64_decode($notes[$key]['description']);?></textarea>
<script>
ClassicEditor
.create( document.querySelector( '#description' ),
{
ckfinder: {
//uploadUrl: '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files&responseType=json'
},
toolbar: {
items: [
'selectAll', 'undo', 'redo', 'bold', 'italic', 'blockQuote', 'link', 'heading', 'imageTextAlternative', 'toggleImageCaption', 'imageStyle:inline', 'imageStyle:alignLeft', 'imageStyle:alignRight', 'imageStyle:alignCenter', 'imageStyle:alignBlockLeft', 'imageStyle:alignBlockRight', 'imageStyle:block', 'imageStyle:side', 'imageStyle:wrapText', 'imageStyle:breakText', 'indent', 'outdent', 'numberedList', 'bulletedList', 'mediaEmbed', 'insertTable', 'tableColumn', 'tableRow', 'mergeTableCells'
],
shouldNotGroupWhenFull: false
},
})
.then( editor => {
// console.log( Array.from( editor.ui.componentFactory.names()));
})
.catch( error => {
console.error( error );
});
</script>
Discover more from Soa Technology | Aditya Website Development Designing Company
Subscribe to get the latest posts sent to your email.