ClassicEditor
.create(document.querySelector('#kuran'))
.then(editor => {
function updatePhoneScreen() {
let kuranText = editor.getData();
console.log('kuranText:', kuranText);
let customTextContainer = document.getElementById('customTextContainer');
customTextContainer.innerHTML = kuranText;
console.log('customTextContainer:', customTextContainer);
}
editor.model.document.on('change:data', updatePhoneScreen);
updatePhoneScreen();
})
.catch(error => {
console.error('CK Editor yüklenirken bir hata oluştu:', error);
});
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter