{"id":355772,"date":"2024-05-20T23:15:47","date_gmt":"2024-05-20T23:15:47","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=355772"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-05-20T23:15:47","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=355772","title":{"rendered":"<span>Nuxt3, Vue3, CKEditor \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 WYSIWYG<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u043e\u0434\u0438\u043d \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c WYSIWYG \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 Nuxt 3. \u041e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c \u0447\u0442\u043e \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043f\u043e\u043b\u043d\u043e, \u043d\u043e, \u043f\u043e\u0434\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0434\u043b\u044f Nuxt 2 \u0438 Vue 2, \u0435\u0441\u0442\u044c \u043d\u0435\u043c\u0430\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0445 Vue 3, \u043f\u0440\u0430\u0432\u0434\u0430 \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u0438\u0445 \u0432 Nuxt 3 \u044d\u0442\u043e \u0446\u0435\u043b\u044b\u0439 \u043a\u0432\u0435\u0441\u0442, \u043e \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c. <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u043e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b \u043a\u0430\u043a \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/ckeditor.com\/docs\/ckeditor5\/latest\/installation\/integrations\/vuejs-v3.html\" rel=\"noopener noreferrer nofollow\">CKEditor<\/a> \u0438\u043c\u0435\u0435\u0442 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 Vue 3<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/tiptap.dev\/installation\/vue3\" rel=\"noopener noreferrer nofollow\">TipTap<\/a> \u0432 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c &#171;Nuxt.js&#187;, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u044d\u0442\u043e \u043f\u0440\u043e Nuxt 2, \u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0434\u043b\u044f Vue 3 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u0438 \u0434\u043b\u044f Nuxt 3. \u041f\u0440\u0430\u0432\u0434\u0430 \u044d\u0442\u043e \u043d\u0435 \u0442\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u044f\u043c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u0430 \u0441\u043a\u043e\u0440\u0435\u0435 \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u0432, \u0442\u0443\u0442 \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0438 \u043f\u043e\u0432\u0435\u0440\u0441\u0442\u0430\u0442\u044c, \u0438 \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u043a\u043e\u043d\u043a\u0438 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430. \u0412 \u043e\u0431\u0449\u0435\u043c \u043a\u0430\u043a-\u0442\u043e \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u0434\u043e\u0448\u043b\u043e.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/element-tiptap.vercel.app\/\" rel=\"noopener noreferrer nofollow\">Element Tiptap<\/a> \u044d\u0442\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 element-ui, \u043d\u043e \u043e\u043d \u0434\u043b\u044f Nuxt 2 (Vue 2), \u043f\u0440\u0430\u0432\u0434\u0430 2.0.0.1 alpha \u0432\u0435\u0440\u0441\u0438\u044f &#8212; \u044d\u0442\u043e Tiptap 2 \u0434\u043b\u044f Vue 3 \u043d\u0430 element-plus. \u0422\u0443\u0442 \u044f \u043e\u0431\u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0441\u044f \u0442.\u043a. \u043c\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 element-plus \u0438 \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u043f\u0430\u0437\u043b \u0441\u043e\u0448\u0435\u043b\u0441\u044f, \u043d\u043e \u043d\u0435 \u0442\u0443\u0442 \u0442\u043e \u0431\u044b\u043b\u043e, \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432 \u0442\u0430\u043d\u0446\u0435\u0432 \u0441 \u0431\u0443\u0431\u043d\u043e\u043c, \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043e\u0436\u0438\u0432\u0438\u0442\u044c \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0442\u0430\u043a \u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u0436\u0430\u043b\u044c. <\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/F-loat\/vue-simplemde\" rel=\"noopener noreferrer nofollow\">Vue SimpleMDE<\/a> \u0441\u0443\u0434\u044f \u043f\u043e \u0433\u0438\u0442\u0445\u0430\u0431\u0443 \u043d\u0435 \u043e\u0441\u043e\u0431\u043e-\u0442\u043e \u0438 \u0436\u0438\u0432\u043e\u0439, \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u0435\u043c\u043a\u0438, \u0434\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u0442\u0430\u043a \u0438 \u043d\u0435 \u0434\u043e\u0448\u043b\u043e. \u041f\u0440\u043e\u0441\u0442\u043e \u0437\u043d\u0430\u0439\u0442\u0435, \u0435\u0441\u0442\u044c \u0438 \u0442\u0430\u043a\u043e\u0439.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/iliyaZelenko\/tiptap-vuetify\" rel=\"noopener noreferrer nofollow\">TipTap Vuetify<\/a> \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043d\u043e \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0442\u0430\u0449\u0438\u0442\u044c \u0435\u0449\u0435 \u0438 vuetify \u0432 \u043f\u0440\u043e\u0435\u043a\u0442, \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043f\u0440\u043e \u0437\u0430\u043f\u0430\u0441. \u0418\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f Nuxt 2, \u043f\u0440\u043e Vue 3 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432 \u0434\u043e\u043a\u0435 \u043d\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p><a href=\"http:\/\/www.mavoneditor.com\/\" rel=\"noopener noreferrer nofollow\">mavonEditor<\/a> markdown \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u043e\u0442\u0437\u044b\u0432\u0447\u0438\u0432\u044b\u0439, \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u044b\u0439, \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0435\u0433\u043e \u0433\u0434\u0435-\u0442\u043e \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e, \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c \u044e\u0437\u0435\u0440\u0430\u043c \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 markdown \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c.<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e \u0432\u0441\u0435 \u0433\u0440\u0430\u0431\u043b\u0438 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0442\u044c, \u0445\u043e\u0447\u0443 \u0441\u0440\u0430\u0437\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043f\u043e CKEditor&#8217;\u0443 \u0434\u043b\u044f Nuxt 3, \u0442.\u043a. \u043d\u0430\u0439\u0442\u0438 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u043e\u0431\u0449\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u0442\u0430\u043a \u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c. <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442<\/p>\n<pre><code class=\"bash\">npm install --save @ckeditor\/ckeditor5-vue @ckeditor\/ckeditor5-build-classic<\/code><\/pre>\n<p>\u0414\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u043b\u0430\u0433\u0438\u043d &#8212; <code>plugins\/editor.client.js <\/code> &#171;client&#187; \u0432 \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 mode:&#187;client&#187; (\u0435\u0441\u043b\u0438\u0431 \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b\u0438 \u043f\u043b\u0430\u0433\u0438\u043d \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0444\u0438\u0433). \u041a\u043e\u0440\u0435\u043d\u044c \u043f\u0430\u043f\u043a\u0438 plugins \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 \u043e\u0442\u0442\u0443\u0434\u0430 \u0432\u0441\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0432 <a href=\"https:\/\/nuxt.com\/docs\/guide\/directory-structure\/plugins\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0435<\/a>.<\/p>\n<pre><code class=\"javascript\">import CKEditor from '@ckeditor\/ckeditor5-vue';  export default defineNuxtPlugin((nuxtApp) => {     nuxtApp.vueApp.use(CKEditor) })<\/code><\/pre>\n<p>mode:&#187;client&#187; \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b SSR \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u043b \u0432 \u0441\u0435\u0431\u044f \u044d\u0442\u043e\u0442 \u043f\u043b\u0430\u0433\u0438\u043d, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u043b\u0430\u0433\u0438\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u0441\u044f\u043a\u043e\u0435 \u0432\u0440\u043e\u0434\u0435 <code>window.<\/code> \u043e \u0447\u044c\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0438 SSR \u043d\u0435 \u0432 \u043a\u0443\u0440\u0441\u0435 \u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 <code>\"window is not defined\"<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435, \u0435\u0441\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 <code>import ClassicEditor from '@ckeditor\/ckeditor5-build-classic'; <\/code>\u0442\u043e \u043c\u044b \u043e\u043f\u044f\u0442\u044c \u0441\u0442\u043e\u043b\u043a\u043d\u0435\u043c\u0441\u044f \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u0435\u043c\u044b\u043c\u0438 ssr, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u043e\u0431\u043e\u0439\u0442\u0438 \u043f\u043e\u0439\u0434\u0435\u043c \u043d\u0430 \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u044c, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>components\/editor.vue<\/code><\/p>\n<pre><code class=\"javascript\">&lt;template>     &lt;div>         &lt;ckeditor :editor=\"ClassicEditor\" :config=\"editorConfig\" v-model=\"editorHtml\">&lt;\/ckeditor>         &lt;div> Content is: &lt;div v-html=\"editorHtml\">&lt;\/div> &lt;\/div>     &lt;\/div> &lt;\/template> &lt;script setup> import ClassicEditor from '@ckeditor\/ckeditor5-build-classic'; import '@ckeditor\/ckeditor5-build-classic\/build\/translations\/ru';  const props = defineProps(['modelValue']) const emit = defineEmits(['update:modelValue'])  const editorConfig = ref({     language: 'ru' })  const editorHtml = computed({     get: () => props.modelValue,     set: (value) => emit('update:modelValue', value), })  &lt;\/script><\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c ckeditor \u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"javascript\">&lt;template>   &lt;div>     &lt;ClientOnly>       &lt;Editor v-model=\"content\" \/>     &lt;\/ClientOnly>     &lt;div>content is:{{ content }}&lt;\/div>   &lt;\/div> &lt;\/template> &lt;script setup> import Editor from \"~\/components\/editor\" const content = ref() &lt;\/script><\/code><\/pre>\n<p>\u0422\u0443\u0442 \u0432\u0441\u044f \u043c\u0430\u0433\u0438\u044f \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 <code>ClientOnly <\/code>, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c SSR \u043d\u0435 \u0434\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0434\u043e \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0433\u0434\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <code>ClassicEditor<\/code> \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"javascript\">const editorConfig = ref({     language: 'ru',     ckfinder: {         uploadUrl: '\/api\/file\/upload'     } })<\/code><\/pre>\n<p>\u0438 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u043d\u043e \u0442\u0443\u0442 \u043e\u043f\u044f\u0442\u044c &#171;\u041d\u041e&#187;, ckfinder \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a \u0437\u0430\u043f\u0440\u043e\u0441\u0443 headers, \u0430 \u043c\u043d\u0435 \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043a\u043e\u0441\u0442\u044b\u043b\u0438\u0442\u044c \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u0431\u0435\u0437 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432. \u0412 \u0442\u0430\u043a\u043e\u0439 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u0432\u043f\u043e\u043b\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043a\u0438\u0434\u0430\u0442\u044c \u0442\u043e\u043a\u0435\u043d get \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u043d\u0430 \u0431\u044d\u043a\u0435, \u043d\u043e \u0435\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u0431\u043e\u0440\u043a\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0431\u0438\u043b\u0434\u0430 \u0438\u043b\u0438 \u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d\u044b, <a href=\"https:\/\/ckeditor.com\/docs\/ckeditor5\/latest\/installation\/integrations\/vuejs-v3.html#installing-plugins\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0430 \u0442\u0443\u0442<\/a>. \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u043b\u0430\u0433\u0438\u043d <a href=\"https:\/\/ckeditor.com\/docs\/ckeditor5\/latest\/features\/images\/image-upload\/simple-upload-adapter.html\" rel=\"noopener noreferrer nofollow\">SimpleUploadAdapter<\/a>, \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c (\u0431\u0435\u0433\u043b\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0432 \u0434\u043e\u043a\u0443) \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 (npm install \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0442.\u043a. \u043e\u043d \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u0445 \u0443 @ckeditor\/ckeditor5-build-classic) , \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 components\/editor.vue<\/p>\n<pre><code class=\"javascript\">import { SimpleUploadAdapter } from '@ckeditor\/ckeditor5-upload';<\/code><\/pre>\n<p>\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443 <code>ckeditor\u2011duplicated\u2011modules.<\/code> \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u043b\u0430\u0433\u0438\u043d \u0443\u0436\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0442\u0441\u044f \u0432<a class=\"mention\" href=\"\/users\/ckeditor\/ckeditor5-build-classic\">@ckeditor\/ckeditor5-build-classic<\/a> \u0438 \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0435 \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0441\u0431\u043e\u0440\u043a\u0443, \u0430 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0432\u043e\u044e, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a class=\"mention\" href=\"\/users\/ckeditor\/ckeditor5-editor-classic\">@ckeditor\/ckeditor5-editor-classic<\/a> \u0442.\u0435. \u043d\u0435 <s>build<\/s>, \u0430 <strong>editor. <\/strong>\u0414\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043e\u0434\u043d\u0443 \u043a\u043d\u043e\u043f\u043a\u0443 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u0434, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u043e\u0432\u044b\u0439 components\/editor.vue<\/p>\n<pre><code class=\"javascript\">&lt;template>     &lt;div>         &lt;ckeditor :editor=\"ClassicEditor\" :config=\"editorConfig\" v-model=\"editorHtml\">&lt;\/ckeditor>         &lt;div> Content is: &lt;div v-html=\"editorHtml\">&lt;\/div> &lt;\/div>     &lt;\/div> &lt;\/template> &lt;script setup> import { ClassicEditor } from '@ckeditor\/ckeditor5-editor-classic' import { SimpleUploadAdapter } from '@ckeditor\/ckeditor5-upload' import ImagePlugin from '@ckeditor\/ckeditor5-image\/src\/image' import ImageCaptionPlugin from '@ckeditor\/ckeditor5-image\/src\/imagecaption' import ImageStylePlugin from '@ckeditor\/ckeditor5-image\/src\/imagestyle' import ImageToolbarPlugin from '@ckeditor\/ckeditor5-image\/src\/imagetoolbar' import ImageUploadPlugin from '@ckeditor\/ckeditor5-image\/src\/imageupload' import '@ckeditor\/ckeditor5-build-classic\/build\/translations\/ru';  const props = defineProps(['modelValue']) const emit = defineEmits(['update:modelValue'])  const editorConfig = ref({     language: 'ru',     plugins: [         SimpleUploadAdapter,         ImagePlugin,         ImageCaptionPlugin,         ImageToolbarPlugin,         ImageStylePlugin,         ImageUploadPlugin     ],     toolbar: {         items: [             'imageUpload'         ]     },     simpleUpload: {         uploadUrl: '\/api\/upload',         withCredentials: true,         headers: {             Authorization: 'Bearer &lt;token>',         }     }, })  const editorHtml = computed({     get: () => props.modelValue,     set: (value) => emit('update:modelValue', value), })  &lt;\/script><\/code><\/pre>\n<p>\u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 Nuxt \u043f\u0440\u0435\u043f\u043e\u0434\u043d\u043e\u0441\u0438\u0442 \u043d\u043e\u0432\u044b\u0439 \u0441\u044e\u0440\u043f\u0440\u0438\u0437,\u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 <\/p>\n<blockquote>\n<p>TypeError: Cannot read properties of null (reading &#8216;getAttribute&#8217;)<\/p>\n<\/blockquote>\n<p>\u0435\u0441\u043b\u0438 \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435 \u0442\u043e \u043f\u0440\u0438\u0434\u0435\u043c \u043a \u0441\u0442\u0440\u043e\u0447\u043a\u0435 <\/p>\n<pre><code class=\"javascript\">const viewBox = svg.getAttribute('viewBox')<\/code><\/pre>\n<p>google \u043c\u0430\u043b\u043e \u0447\u0442\u043e \u043f\u0440\u043e \u044d\u0442\u043e \u043f\u043e\u0434\u0441\u043a\u0430\u0436\u0435\u0442, \u043d\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u0435\u0441\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <a href=\"https:\/\/github.com\/ckeditor\/ckeditor5\/issues\/12767#issuecomment-1341639637\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>, \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u0432 \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435\u0440\u0432\u043e\u0432 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u043c \u0447\u0442\u043e \u0434\u0435\u043b\u043e \u0432 vite, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f CKEditor \u043e\u0431 \u044d\u0442\u043e\u043c \u0432 \u043a\u0443\u0440\u0441\u0435, <a href=\"https:\/\/ckeditor.com\/docs\/ckeditor5\/latest\/installation\/advanced\/alternative-setups\/integrating-from-source-vite.html\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0442\u0443\u0442<\/a>. \u0410 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0435, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u0435\u043b\u0430\u0435\u043c <\/p>\n<pre><code class=\"bash\">npm install @ckeditor\/vite-plugin-ckeditor5 @ckeditor\/ckeditor5-theme-lark<\/code><\/pre>\n<p>\u043f\u043e\u0442\u043e\u043c \u0438\u0434\u0435\u043c \u0432 nuxt.config.ts \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u043c \u043f\u043b\u0430\u0433\u0438\u043d vite , \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0443\u0441\u0442\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a<\/p>\n<pre><code class=\"typescript\">import ckeditor5 from '@ckeditor\/vite-plugin-ckeditor5' export default defineNuxtConfig({   devtools: { enabled: true },   vite: {     plugins: [ckeditor5({ theme: require.resolve( '@ckeditor\/ckeditor5-theme-lark' ) })]   } })<\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u0432\u0441\u0435, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0432\u043e\u0438 build&#8217;\u044b, CKEditor \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u0430 \u0434\u043b\u044f Nuxt 3 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0445 WYSIWYG \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u0432. \u041f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0432\u0441\u0435 \u044d\u0442\u043e \u043e\u0431\u043e\u0431\u0449\u0438\u0442\u044c, \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u043c\u0438\u043d\u0438-\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e. \u0421\u0442\u0440\u043e\u0433\u043e \u043d\u0435 \u0441\u0443\u0434\u0438\u0442\u0435 \ud83d\ude42<\/p>\n<p>P.S. \u0431\u044d\u043a \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c <\/p>\n<pre><code class=\"json\">{     \"url\": \"https:\/\/example.com\/images\/foo.jpg\" }<\/code><\/pre>\n<p>\u0438\u043b\u0438<\/p>\n<pre><code class=\"json\">{     \"urls\": {         \"default\": \"https:\/\/example.com\/images\/foo.jpg\",         \"800\": \"https:\/\/example.com\/images\/foo-800.jpg\",         \"1024\": \"https:\/\/example.com\/images\/foo-1024.jpg\",         \"1920\": \"https:\/\/example.com\/images\/foo-1920.jpg\"     } }<\/code><\/pre>\n<p>\u0438\u043b\u0438<\/p>\n<pre><code>{     \"error\": {         \"message\": \"The image upload failed because the image was too big (max 1.5MB).\"     } }<\/code><\/pre>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435  <a href=\"https:\/\/ckeditor.com\/docs\/ckeditor5\/latest\/features\/images\/image-upload\/simple-upload-adapter.html\" rel=\"noopener noreferrer nofollow\">Simple upload adapter<\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/763252\/\"> https:\/\/habr.com\/ru\/articles\/763252\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u043e\u0434\u0438\u043d \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c WYSIWYG \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 Nuxt 3. \u041e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c \u0447\u0442\u043e \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043f\u043e\u043b\u043d\u043e, \u043d\u043e, \u043f\u043e\u0434\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0434\u043b\u044f Nuxt 2 \u0438 Vue 2, \u0435\u0441\u0442\u044c \u043d\u0435\u043c\u0430\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0445 Vue 3, \u043f\u0440\u0430\u0432\u0434\u0430 \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u0438\u0445 \u0432 Nuxt 3 \u044d\u0442\u043e \u0446\u0435\u043b\u044b\u0439 \u043a\u0432\u0435\u0441\u0442, \u043e \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c. <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u043e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b \u043a\u0430\u043a \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u0432:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/ckeditor.com\/docs\/ckeditor5\/latest\/installation\/integrations\/vuejs-v3.html\" rel=\"noopener noreferrer nofollow\">CKEditor<\/a> \u0438\u043c\u0435\u0435\u0442 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 Vue 3<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/tiptap.dev\/installation\/vue3\" rel=\"noopener noreferrer nofollow\">TipTap<\/a> \u0432 \u043c\u0435\u043d\u044e \u0441\u043b\u0435\u0432\u0430 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c &#171;Nuxt.js&#187;, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u044d\u0442\u043e \u043f\u0440\u043e Nuxt 2, \u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0434\u043b\u044f Vue 3 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u0438 \u0434\u043b\u044f Nuxt 3. \u041f\u0440\u0430\u0432\u0434\u0430 \u044d\u0442\u043e \u043d\u0435 \u0442\u043e \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u044f\u043c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u0430 \u0441\u043a\u043e\u0440\u0435\u0435 \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u0432, \u0442\u0443\u0442 \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0438 \u043f\u043e\u0432\u0435\u0440\u0441\u0442\u0430\u0442\u044c, \u0438 \u043f\u043e\u0434\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u043a\u043e\u043d\u043a\u0438 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430. \u0412 \u043e\u0431\u0449\u0435\u043c \u043a\u0430\u043a-\u0442\u043e \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u0434\u043e\u0448\u043b\u043e.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/element-tiptap.vercel.app\/\" rel=\"noopener noreferrer nofollow\">Element Tiptap<\/a> \u044d\u0442\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 element-ui, \u043d\u043e \u043e\u043d \u0434\u043b\u044f Nuxt 2 (Vue 2), \u043f\u0440\u0430\u0432\u0434\u0430 2.0.0.1 alpha \u0432\u0435\u0440\u0441\u0438\u044f &#8212; \u044d\u0442\u043e Tiptap 2 \u0434\u043b\u044f Vue 3 \u043d\u0430 element-plus. \u0422\u0443\u0442 \u044f \u043e\u0431\u0440\u0430\u0434\u043e\u0432\u0430\u043b\u0441\u044f \u0442.\u043a. \u043c\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 element-plus \u0438 \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u043f\u0430\u0437\u043b \u0441\u043e\u0448\u0435\u043b\u0441\u044f, \u043d\u043e \u043d\u0435 \u0442\u0443\u0442 \u0442\u043e \u0431\u044b\u043b\u043e, \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432 \u0442\u0430\u043d\u0446\u0435\u0432 \u0441 \u0431\u0443\u0431\u043d\u043e\u043c, \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043e\u0436\u0438\u0432\u0438\u0442\u044c \u043f\u0430\u0446\u0438\u0435\u043d\u0442\u0430 \u0442\u0430\u043a \u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u0436\u0430\u043b\u044c. <\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/F-loat\/vue-simplemde\" rel=\"noopener noreferrer nofollow\">Vue SimpleMDE<\/a> \u0441\u0443\u0434\u044f \u043f\u043e \u0433\u0438\u0442\u0445\u0430\u0431\u0443 \u043d\u0435 \u043e\u0441\u043e\u0431\u043e-\u0442\u043e \u0438 \u0436\u0438\u0432\u043e\u0439, \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u0435\u043c\u043a\u0438, \u0434\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u0442\u0430\u043a \u0438 \u043d\u0435 \u0434\u043e\u0448\u043b\u043e. \u041f\u0440\u043e\u0441\u0442\u043e \u0437\u043d\u0430\u0439\u0442\u0435, \u0435\u0441\u0442\u044c \u0438 \u0442\u0430\u043a\u043e\u0439.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/iliyaZelenko\/tiptap-vuetify\" rel=\"noopener noreferrer nofollow\">TipTap Vuetify<\/a> \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043d\u043e \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0442\u0430\u0449\u0438\u0442\u044c \u0435\u0449\u0435 \u0438 vuetify \u0432 \u043f\u0440\u043e\u0435\u043a\u0442, \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043f\u0440\u043e \u0437\u0430\u043f\u0430\u0441. \u0418\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f Nuxt 2, \u043f\u0440\u043e Vue 3 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432 \u0434\u043e\u043a\u0435 \u043d\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p><a href=\"http:\/\/www.mavoneditor.com\/\" rel=\"noopener noreferrer nofollow\">mavonEditor<\/a> markdown \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u043e\u0442\u0437\u044b\u0432\u0447\u0438\u0432\u044b\u0439, \u0441\u0438\u043c\u043f\u0430\u0442\u0438\u0447\u043d\u044b\u0439, \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0435\u0433\u043e \u0433\u0434\u0435-\u0442\u043e \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e, \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c \u044e\u0437\u0435\u0440\u0430\u043c \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 markdown \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c.<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e \u0432\u0441\u0435 \u0433\u0440\u0430\u0431\u043b\u0438 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u0441\u0442\u0443\u043f\u0438\u0442\u044c, \u0445\u043e\u0447\u0443 \u0441\u0440\u0430\u0437\u0443 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043f\u043e CKEditor&#8217;\u0443 \u0434\u043b\u044f Nuxt 3, \u0442.\u043a. \u043d\u0430\u0439\u0442\u0438 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u043e\u0431\u0449\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u0442\u0430\u043a \u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c. <\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442<\/p>\n<pre><code class=\"bash\">npm install --save @ckeditor\/ckeditor5-vue @ckeditor\/ckeditor5-build-classic<\/code><\/pre>\n<p>\u0414\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u043b\u0430\u0433\u0438\u043d &#8212; <code>plugins\/editor.client.js <\/code> &#171;client&#187; \u0432 \u0438\u043c\u0435\u043d\u0438 \u0444\u0430\u0439\u043b\u0430 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 mode:&#187;client&#187; (\u0435\u0441\u043b\u0438\u0431 \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b\u0438 \u043f\u043b\u0430\u0433\u0438\u043d \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0444\u0438\u0433). \u041a\u043e\u0440\u0435\u043d\u044c \u043f\u0430\u043f\u043a\u0438 plugins \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 \u043e\u0442\u0442\u0443\u0434\u0430 \u0432\u0441\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0432 <a href=\"https:\/\/nuxt.com\/docs\/guide\/directory-structure\/plugins\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0435<\/a>.<\/p>\n<pre><code class=\"javascript\">import CKEditor from '@ckeditor\/ckeditor5-vue';  export default defineNuxtPlugin((nuxtApp) => {     nuxtApp.vueApp.use(CKEditor) })<\/code><\/pre>\n<p>mode:&#187;client&#187; \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b SSR \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u043b \u0432 \u0441\u0435\u0431\u044f \u044d\u0442\u043e\u0442 \u043f\u043b\u0430\u0433\u0438\u043d, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043f\u043b\u0430\u0433\u0438\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u0441\u044f\u043a\u043e\u0435 \u0432\u0440\u043e\u0434\u0435 <code>window.<\/code> \u043e \u0447\u044c\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0438 SSR \u043d\u0435 \u0432 \u043a\u0443\u0440\u0441\u0435 \u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 <code>\"window is not defined\"<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435, \u0435\u0441\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 <code>import ClassicEditor from '@ckeditor\/ckeditor5-build-classic'; <\/code>\u0442\u043e \u043c\u044b \u043e\u043f\u044f\u0442\u044c \u0441\u0442\u043e\u043b\u043a\u043d\u0435\u043c\u0441\u044f \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u0435\u043c\u044b\u043c\u0438 ssr, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u043e\u0431\u043e\u0439\u0442\u0438 \u043f\u043e\u0439\u0434\u0435\u043c \u043d\u0430 \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u044c, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>components\/editor.vue<\/code><\/p>\n<pre><code class=\"javascript\">&lt;template>     &lt;div>         &lt;ckeditor :editor=\"ClassicEditor\" :config=\"editorConfig\" v-model=\"editorHtml\">&lt;\/ckeditor>         &lt;div> Content is: &lt;div v-html=\"editorHtml\">&lt;\/div> &lt;\/div>     &lt;\/div> &lt;\/template> &lt;script setup> import ClassicEditor from '@ckeditor\/ckeditor5-build-classic'; import '@ckeditor\/ckeditor5-build-classic\/build\/translations\/ru';  const props = defineProps(['modelValue']) const emit = defineEmits(['update:modelValue'])  const editorConfig = ref({     language: 'ru' })  const editorHtml = computed({     get: () => props.modelValue,     set: (value) => emit('update:modelValue', value), })  &lt;\/script><\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c ckeditor \u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"javascript\">&lt;template>   &lt;div>     &lt;ClientOnly>       &lt;Editor v-model=\"content\" \/>     &lt;\/ClientOnly>     &lt;div>content is:{{ content }}&lt;\/div>   &lt;\/div> &lt;\/template> &lt;script setup> import Editor from \"~\/components\/editor\" const content = ref() &lt;\/script><\/code><\/pre>\n<p>\u0422\u0443\u0442 \u0432\u0441\u044f \u043c\u0430\u0433\u0438\u044f \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 <code>ClientOnly <\/code>, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c SSR \u043d\u0435 \u0434\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0434\u043e \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0433\u0434\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <code>ClassicEditor<\/code> \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"javascript\">const editorConfig = ref({     language: 'ru',     ckfinder: {         uploadUrl: '\/api\/file\/upload'     } })<\/code><\/pre>\n<p>\u0438 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u043d\u043e \u0442\u0443\u0442 \u043e\u043f\u044f\u0442\u044c &#171;\u041d\u041e&#187;, ckfinder \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a \u0437\u0430\u043f\u0440\u043e\u0441\u0443 headers, \u0430 \u043c\u043d\u0435 \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043a\u043e\u0441\u0442\u044b\u043b\u0438\u0442\u044c \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u0431\u0435\u0437 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0444\u0430\u0439\u043b\u043e\u0432. \u0412 \u0442\u0430\u043a\u043e\u0439 \u044d\u043d\u0434\u043f\u043e\u0438\u043d\u0442 \u0432\u043f\u043e\u043b\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043a\u0438\u0434\u0430\u0442\u044c \u0442\u043e\u043a\u0435\u043d get \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0442\u043e\u043a\u0435\u043d \u043d\u0430 \u0431\u044d\u043a\u0435, \u043d\u043e \u0435\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u0431\u043e\u0440\u043a\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0431\u0438\u043b\u0434\u0430 \u0438\u043b\u0438 \u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d\u044b, <a href=\"https:\/\/ckeditor.com\/docs\/ckeditor5\/latest\/installation\/integrations\/vuejs-v3.html#installing-plugins\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0430 \u0442\u0443\u0442<\/a>. \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u043b\u0430\u0433\u0438\u043d <a href=\"https:\/\/ckeditor.com\/docs\/ckeditor5\/latest\/features\/images\/image-upload\/simple-upload-adapter.html\" rel=\"noopener noreferrer nofollow\">SimpleUploadAdapter<\/a>, \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c (\u0431\u0435\u0433\u043b\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0432 \u0434\u043e\u043a\u0443) \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 (npm install \u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0442.\u043a. \u043e\u043d \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u0445 \u0443 @ckeditor\/ckeditor5-build-classic) , \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 components\/editor.vue<\/p>\n<pre><code class=\"javascript\">import { SimpleUploadAdapter } from '@ckeditor\/ckeditor5-upload';<\/code><\/pre>\n<p>\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443 <code>ckeditor\u2011duplicated\u2011modules.<\/code> \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u043b\u0430\u0433\u0438\u043d \u0443\u0436\u0435 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0442\u0441\u044f \u0432<a class=\"mention\" href=\"\/users\/ckeditor\/ckeditor5-build-classic\">@ckeditor\/ckeditor5-build-classic<\/a> \u0438 \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043d\u0435 \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0441\u0431\u043e\u0440\u043a\u0443, \u0430 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0441\u0432\u043e\u044e, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a class=\"mention\" href=\"\/users\/ckeditor\/ckeditor5-editor-classic\">@ckeditor\/ckeditor5-editor-classic<\/a> \u0442.\u0435. \u043d\u0435 <s>build<\/s>, \u0430 <strong>editor. <\/strong>\u0414\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043e\u0434\u043d\u0443 \u043a\u043d\u043e\u043f\u043a\u0443 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u0434, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u043e\u0432\u044b\u0439 components\/editor.vue<\/p>\n<pre><code class=\"javascript\">&lt;template>     &lt;div>         &lt;ckeditor :editor=\"ClassicEditor\" :config=\"editorConfig\" v-model=\"editorHtml\">&lt;\/ckeditor>         &lt;div> Content is: &lt;div v-html=\"editorHtml\">&lt;\/div> &lt;\/div>     &lt;\/div> &lt;\/template> &lt;script setup> import { ClassicEditor } from '@ckeditor\/ckeditor5-editor-classic' import { SimpleUploadAdapter } from '@ckeditor\/ckeditor5-upload' import ImagePlugin from '@ckeditor\/ckeditor5-image\/src\/image' import ImageCaptionPlugin from '@ckeditor\/ckeditor5-image\/src\/imagecaption' import ImageStylePlugin from '@ckeditor\/ckeditor5-image\/src\/imagestyle' import ImageToolbarPlugin from '@ckeditor\/ckeditor5-image\/src\/imagetoolbar' import ImageUploadPlugin from '@ckeditor\/ckeditor5-image\/src\/imageupload' import '@ckeditor\/ckeditor5-build-classic\/build\/translations\/ru';  const props = defineProps(['modelValue']) const emit = defineEmits(['update:modelValue'])  const editorConfig = ref({     language: 'ru',     plugins: [         SimpleUploadAdapter,         ImagePlugin,         ImageCaptionPlugin,         ImageToolbarPlugin,         ImageStylePlugin,         ImageUploadPlugin     ],     toolbar: {         items: [             'imageUpload'         ]     },     simpleUpload: {         uploadUrl: '\/api\/upload',         withCredentials: true,         headers: {             Authorization: 'Bearer &lt;token>',         }     }, })  const editorHtml = computed({     get: () => props.modelValue,     set: (value) => emit('update:modelValue', value), })  &lt;\/script><\/code><\/pre>\n<p>\u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u043e\u0440\u043a\u0438 Nuxt \u043f\u0440\u0435\u043f\u043e\u0434\u043d\u043e\u0441\u0438\u0442 \u043d\u043e\u0432\u044b\u0439 \u0441\u044e\u0440\u043f\u0440\u0438\u0437,\u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 <\/p>\n<blockquote>\n<p>TypeError: Cannot read properties of null (reading &#8216;getAttribute&#8217;)<\/p>\n<\/blockquote>\n<p>\u0435\u0441\u043b\u0438 \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435 \u0442\u043e \u043f\u0440\u0438\u0434\u0435\u043c \u043a \u0441\u0442\u0440\u043e\u0447\u043a\u0435 <\/p>\n<pre><code class=\"javascript\">const viewBox = svg.getAttribute('viewBox')<\/code><\/pre>\n<p>google \u043c\u0430\u043b\u043e \u0447\u0442\u043e \u043f\u0440\u043e \u044d\u0442\u043e \u043f\u043e\u0434\u0441\u043a\u0430\u0436\u0435\u0442, \u043d\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u0435\u0441\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <a href=\"https:\/\/github.com\/ckeditor\/ckeditor5\/issues\/12767#issuecomment-1341639637\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>, \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u0432 \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435\u0440\u0432\u043e\u0432 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u043c \u0447\u0442\u043e \u0434\u0435\u043b\u043e \u0432 vite, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f CKEditor \u043e\u0431 \u044d\u0442\u043e\u043c \u0432 \u043a\u0443\u0440\u0441\u0435, <a href=\"https:\/\/ckeditor.com\/docs\/ckeditor5\/latest\/installation\/advanced\/alternative-setups\/integrating-from-source-vite.html\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0442\u0443\u0442<\/a>. \u0410 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0435, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u0435\u043b\u0430\u0435\u043c <\/p>\n<pre><code class=\"bash\">npm install @ckeditor\/vite-plugin-ckeditor5 @ckeditor\/ckeditor5-theme-lark<\/code><\/pre>\n<p>\u043f\u043e\u0442\u043e\u043c \u0438\u0434\u0435\u043c \u0432 nuxt.config.ts \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u043c \u043f\u043b\u0430\u0433\u0438\u043d vite , \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0443\u0441\u0442\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a<\/p>\n<pre><code class=\"typescript\">import ckeditor5 from '@ckeditor\/vite-plugin-ckeditor5' export default defineNuxtConfig({   devtools: { enabled: true },   vite: {     plugins: [ckeditor5({ theme: require.resolve( '@ckeditor\/ckeditor5-theme-lark' ) })]   } })<\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u0432\u0441\u0435, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0432\u043e\u0438 build&#8217;\u044b, CKEditor \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u0430 \u0434\u043b\u044f Nuxt 3 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u044b\u0445 WYSIWYG \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u043e\u0432. \u041f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b \u0432\u0441\u0435 \u044d\u0442\u043e \u043e\u0431\u043e\u0431\u0449\u0438\u0442\u044c, \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u043c\u0438\u043d\u0438-\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e. \u0421\u0442\u0440\u043e\u0433\u043e \u043d\u0435 \u0441\u0443\u0434\u0438\u0442\u0435 \ud83d\ude42<\/p>\n<p>P.S. \u0431\u044d\u043a \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c <\/p>\n<pre><code class=\"json\">{     \"url\": \"https:\/\/example.com\/images\/foo.jpg\" }<\/code><\/pre>\n<p>\u0438\u043b\u0438<\/p>\n<pre><code class=\"json\">{     \"urls\": {         \"default\": \"https:\/\/example.com\/images\/foo.jpg\",         \"800\": \"https:\/\/example.com\/images\/foo-800.jpg\",         \"1024\": \"https:\/\/example.com\/images\/foo-1024.jpg\",         \"1920\": \"https:\/\/example.com\/images\/foo-1920.jpg\"     } }<\/code><\/pre>\n<p>\u0438\u043b\u0438<\/p>\n<pre><code>{     \"error\": {         \"message\": \"The image upload failed because the image was too big (max 1.5MB).\"     } }<\/code><\/pre>\n<p>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435  <a href=\"https:\/\/ckeditor.com\/docs\/ckeditor5\/latest\/features\/images\/image-upload\/simple-upload-adapter.html\" rel=\"noopener noreferrer nofollow\">Simple upload adapter<\/a><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/763252\/\"> https:\/\/habr.com\/ru\/articles\/763252\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-355772","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/355772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=355772"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/355772\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=355772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=355772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=355772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}