Skip to content

Commit

Permalink
Merge pull request #332 from ckeditor/ck/fix-wrong-version-in-demo
Browse files Browse the repository at this point in the history
Add missing `console.error` in cloud editor demo
  • Loading branch information
Mati365 authored Nov 20, 2024
2 parents 69f341f + 737436c commit 6fd3952
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion demos/editor-cdn/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</template>

<script setup lang="ts">
import { ref, reactive, computed } from 'vue';
import { ref, reactive, computed, effect } from 'vue';
import useCKEditorCloud from '../../src/useCKEditorCloud.js';
import type { EventInfo, ClassicEditor } from 'https://cdn.ckeditor.com/typings/ckeditor5.d.ts';
Expand All @@ -46,6 +46,12 @@ const cloud = useCKEditorCloud( {
version: '43.0.0'
} );
effect( () => {
if ( cloud.error.value ) {
console.error( cloud.error.value );
}
} );
const TestEditor = computed<typeof ClassicEditor | null>( () => {
if ( !cloud.data.value ) {
return null;
Expand Down

0 comments on commit 6fd3952

Please sign in to comment.