Skip to content

Commit 6fd3952

Browse files
authored
Merge pull request #332 from ckeditor/ck/fix-wrong-version-in-demo
Add missing `console.error` in cloud editor demo
2 parents 69f341f + 737436c commit 6fd3952

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

demos/editor-cdn/App.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</template>
3838

3939
<script setup lang="ts">
40-
import { ref, reactive, computed } from 'vue';
40+
import { ref, reactive, computed, effect } from 'vue';
4141
import useCKEditorCloud from '../../src/useCKEditorCloud.js';
4242
import type { EventInfo, ClassicEditor } from 'https://cdn.ckeditor.com/typings/ckeditor5.d.ts';
4343
@@ -46,6 +46,12 @@ const cloud = useCKEditorCloud( {
4646
version: '43.0.0'
4747
} );
4848
49+
effect( () => {
50+
if ( cloud.error.value ) {
51+
console.error( cloud.error.value );
52+
}
53+
} );
54+
4955
const TestEditor = computed<typeof ClassicEditor | null>( () => {
5056
if ( !cloud.data.value ) {
5157
return null;

0 commit comments

Comments
 (0)