We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69f341f + 737436c commit 6fd3952Copy full SHA for 6fd3952
demos/editor-cdn/App.vue
@@ -37,7 +37,7 @@
37
</template>
38
39
<script setup lang="ts">
40
-import { ref, reactive, computed } from 'vue';
+import { ref, reactive, computed, effect } from 'vue';
41
import useCKEditorCloud from '../../src/useCKEditorCloud.js';
42
import type { EventInfo, ClassicEditor } from 'https://cdn.ckeditor.com/typings/ckeditor5.d.ts';
43
@@ -46,6 +46,12 @@ const cloud = useCKEditorCloud( {
46
version: '43.0.0'
47
} );
48
49
+effect( () => {
50
+ if ( cloud.error.value ) {
51
+ console.error( cloud.error.value );
52
+ }
53
+} );
54
+
55
const TestEditor = computed<typeof ClassicEditor | null>( () => {
56
if ( !cloud.data.value ) {
57
return null;
0 commit comments