BesService/ckeditor.html
Simon Rozman 63584185ae Unify nomenclature
Our thing is a grammar checking service for HTML editors. Not editor as
such.
2024-03-13 12:35:54 +01:00

26 lines
708 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>CKEditor 5 Example</title>
<link rel="stylesheet" href="styles.css" />
<script src="https://cdn.ckeditor.com/ckeditor5/41.1.0/classic/ckeditor.js"></script>
<script src="service.js"></script>
</head>
<body>
<div id="editor">
<p>Na mizo nisem položil knjigo.</p>
</div>
<bes-popup-el></bes-popup-el>
<script>
ClassicEditor.create(document.querySelector('#editor'))
.then(newEditor => {
BesService.register(newEditor.ui.view.editable.element, newEditor)
})
.catch(error => {
console.error(error)
})
</script>
</body>
</html>