From 0f472ddd6ad1f773f8d4dbc6521c863f27b568c4 Mon Sep 17 00:00:00 2001 From: Timofey Tiunov Date: Sun, 2 Feb 2020 14:58:54 +0300 Subject: [PATCH] ckeditor image uploads --- src/ckeditor-config.js | 8 +------- src/components/fields/wysiwyg.vue | 12 ++++++++++-- src/lib/ckeditor5/ckeditor.js | 3 ++- src/lib/ckeditor5/translations/af.js | 2 +- src/lib/ckeditor5/translations/ar.js | 2 +- src/lib/ckeditor5/translations/ast.js | 2 +- src/lib/ckeditor5/translations/az.js | 2 +- src/lib/ckeditor5/translations/bg.js | 2 +- src/lib/ckeditor5/translations/ca.js | 2 +- src/lib/ckeditor5/translations/cs.js | 2 +- src/lib/ckeditor5/translations/da.js | 2 +- src/lib/ckeditor5/translations/de-ch.js | 2 +- src/lib/ckeditor5/translations/de.js | 2 +- src/lib/ckeditor5/translations/el.js | 2 +- src/lib/ckeditor5/translations/en-au.js | 2 +- src/lib/ckeditor5/translations/en-gb.js | 2 +- src/lib/ckeditor5/translations/eo.js | 2 +- src/lib/ckeditor5/translations/es.js | 2 +- src/lib/ckeditor5/translations/et.js | 2 +- src/lib/ckeditor5/translations/eu.js | 2 +- src/lib/ckeditor5/translations/fa.js | 2 +- src/lib/ckeditor5/translations/fi.js | 2 +- src/lib/ckeditor5/translations/fr.js | 2 +- src/lib/ckeditor5/translations/gl.js | 2 +- src/lib/ckeditor5/translations/gu.js | 2 +- src/lib/ckeditor5/translations/he.js | 2 +- src/lib/ckeditor5/translations/hr.js | 2 +- src/lib/ckeditor5/translations/hu.js | 2 +- src/lib/ckeditor5/translations/id.js | 2 +- src/lib/ckeditor5/translations/it.js | 2 +- src/lib/ckeditor5/translations/ja.js | 2 +- src/lib/ckeditor5/translations/km.js | 2 +- src/lib/ckeditor5/translations/kn.js | 2 +- src/lib/ckeditor5/translations/ko.js | 2 +- src/lib/ckeditor5/translations/ku.js | 2 +- src/lib/ckeditor5/translations/lt.js | 2 +- src/lib/ckeditor5/translations/lv.js | 2 +- src/lib/ckeditor5/translations/ms.js | 1 - src/lib/ckeditor5/translations/nb.js | 2 +- src/lib/ckeditor5/translations/ne.js | 2 +- src/lib/ckeditor5/translations/nl.js | 2 +- src/lib/ckeditor5/translations/no.js | 2 +- src/lib/ckeditor5/translations/oc.js | 2 +- src/lib/ckeditor5/translations/pl.js | 2 +- src/lib/ckeditor5/translations/pt-br.js | 2 +- src/lib/ckeditor5/translations/pt.js | 2 +- src/lib/ckeditor5/translations/ro.js | 2 +- src/lib/ckeditor5/translations/ru.js | 2 +- src/lib/ckeditor5/translations/si.js | 2 +- src/lib/ckeditor5/translations/sk.js | 2 +- src/lib/ckeditor5/translations/sl.js | 2 +- src/lib/ckeditor5/translations/sq.js | 2 +- src/lib/ckeditor5/translations/sr-latn.js | 2 +- src/lib/ckeditor5/translations/sr.js | 2 +- src/lib/ckeditor5/translations/sv.js | 2 +- src/lib/ckeditor5/translations/tr.js | 2 +- src/lib/ckeditor5/translations/tt.js | 2 +- src/lib/ckeditor5/translations/ug.js | 2 +- src/lib/ckeditor5/translations/uk.js | 2 +- src/lib/ckeditor5/translations/vi.js | 2 +- src/lib/ckeditor5/translations/zh-cn.js | 2 +- src/lib/ckeditor5/translations/zh.js | 2 +- 62 files changed, 71 insertions(+), 69 deletions(-) delete mode 100644 src/lib/ckeditor5/translations/ms.js diff --git a/src/ckeditor-config.js b/src/ckeditor-config.js index 7336aca..fbe782c 100644 --- a/src/ckeditor-config.js +++ b/src/ckeditor-config.js @@ -1,11 +1,5 @@ /* eslint-disable camelcase */ export default { - ckfinder: { - uploadUrl: '/api/upload', - options: { - resourceType: 'Images', - }, - }, heading: { options: [ { model: 'paragraph', title: 'Абзац', view: 'p' }, @@ -42,7 +36,7 @@ export default { 'outdent', '|', 'mediaEmbed', - 'CKFinder', + 'imageUpload', '|', 'undo', 'redo', diff --git a/src/components/fields/wysiwyg.vue b/src/components/fields/wysiwyg.vue index ee7217a..dbe01f6 100644 --- a/src/components/fields/wysiwyg.vue +++ b/src/components/fields/wysiwyg.vue @@ -1,6 +1,7 @@