Move status icon out of core grammar checking service

Status icon is user-implemented now.
This commit is contained in:
2024-06-27 11:35:40 +02:00
parent 042a6b288c
commit 4e3559408e
14 changed files with 264 additions and 142 deletions

View File

@@ -9,6 +9,7 @@
<script src="https://cdn.ckeditor.com/ckeditor5/41.1.0/classic/ckeditor.js"></script>
<script>const besUrl = 'http://localhost:225/api/v2';</script>
<script src="../service.js"></script>
<script src="common.js"></script>
</head>
<body>
<p class="my-block">This is an example of a CKEditor edit control. Edit the text, resize the control or browser window, scroll around, click...</p>
@@ -22,7 +23,7 @@
<bes-popup-el/>
<script>
ClassicEditor.create(document.querySelector('#editor'))
.then(newEditor => BesCKService.register(newEditor.ui.view.editable.element, newEditor))
.then(newEditor => BesCKService.register(newEditor.ui.view.editable.element, newEditor, new BesCKStatusIconEventSink()))
.catch(error => console.error(error))
</script>
</body>