From 32690de8a7f7a114d5754c25a39f8d6f5d7e706c Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 28 Feb 2025 14:56:12 +0100 Subject: [PATCH] samples: Fix CKEditor markup style switching --- samples/markup-style.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/markup-style.html b/samples/markup-style.html index 2e757e9..fbb4550 100644 --- a/samples/markup-style.html +++ b/samples/markup-style.html @@ -75,8 +75,8 @@ Kvazimodo ji je ponavadi prinesel hrano in pijačo, medtem ko je spala, da ne bi let my_ckeditor = null ClassicEditor.create(document.querySelector('#ckeditor-control')) .then(newEditor => { - my_ckeditor = newEditor - BesCKService.register(newEditor.ui.view.editable.element, newEditor, new BesCKStatusIconEventSink()) + my_ckeditor = newEditor.ui.view.editable.element + BesCKService.register(my_ckeditor, newEditor, new BesCKStatusIconEventSink()) }) .catch(error => console.error(error))